[omniORB] Connecting to servers without using the Name Service
Duncan Grisby
dgrisby@uk.research.att.com
Tue, 15 Feb 2000 15:50:57 +0000
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.
In omniORB 2.8, with the BOA, there is no standardised way to request
a particular object key. Look at the omniNames source to see how to do
it in an omniORB-specific way. The command line argument in 2.8 is
-BOAiiop_port.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --