[omniORB] Connecting to servers without using the Name Service

David Riddoch djr@uk.research.att.com
Tue, 15 Feb 2000 15:56:09 +0000 (GMT)


On Tue, 15 Feb 2000, Duncan Grisby wrote:

> On Tuesday 15 February, david.sansom@db.com wrote:
> 
> > Question: I have a server process which always runs on the same box,
> > and there is only one instance at any one time. I should like my
> > clients to be able to connect to this server, using reasonably
> > constant connection information (eg IP address & port). Due to
> > reliability concerns, I would rather not use the Name Service to
> > locate the server. From the omniORB2 documentation, it appears that
> > the server can act as its own Name Service in some way, but this is
> > not pursued.
> >
> > The server may well be restarted frequently, so I can't simply use
> > the (transient) IOR that it creates.
> 
> You can contrive to make your server always use the same IOR. With
> omniORB 3 you can use a POA with the USER_ID policy so that the object
> key is always the same. Then you can use -ORBpoa_iiop_port to force
> the process to listen on the same port number each time it runs.

The POA also needs to have the PERSISTENT policy.


David