[omniORB] persistant objects?
David Riddoch
djr@uk.research.att.com
Wed, 5 Jul 2000 10:16:43 +0100 (BST)
Jonathan,
To do this in omniORB 3, see the example given in
<omniORB>/src/examples/poa/persistent_objref.
In 2.8 you have to ensure the following:
* use the same object key each time. The key can be given as an
argument to the skeleton (_sk_foo) contructor.
* use the same port number each time ( -BOA_iiop_port <port> )
Cheers,
David
On Tue, 4 Jul 2000, Jonathan Clark wrote:
> I was wondering what is the proper way to create persistent objects using
> omniorb? I.e. Ensure that my objects have the same
> IOR each time they are created after the server has been restarted?
> I searched for the PERSISTENT keyword in all of the headers and saw
> no mention - nor did past mailing list discussions reveal anything to me.
>
> The NameService appears to be able to do it by saving it's IOR to a file
> and somehow reading it back, but I haven't quiet discovered
> the proper procedure from reading the name service source code.