[omniORB] connecting a servant without IOR parameter (just
IPaddress and TCP port) ?
Thomas Zumbiehl
zumbiehl at bvassociates.fr
Tue Feb 16 16:27:40 GMT 2010
Or there's another way, avoiding the use of those and being cross-orb capable :
You juste need to stringify the top servant's IOR, create a socket on the server within a separate thread before entering the ORB's run method (which is blocking). That thread should wait for connections, send the stringified IOR, close the socket and get back on waiting.
That work for me fine for several years now, with both java and C++ clients.
This avoids you from implementing a name service. The only things the clients should now is the name ou address and port number of the server.
Thomas Zumbiehl
CTO
BV Associates
http://www.bvassociates.fr
-----Message d'origine-----
De : omniorb-list-bounces at omniorb-support.com [mailto:omniorb-list-bounces at omniorb-support.com] De la part de Martin B.
Envoyé : mardi 16 février 2010 16:16
À : OmniORB Support
Objet : Re: [omniORB] connecting a servant without IOR parameter (just IPaddress and TCP port) ?
DESCOMBES Thierry wrote:
> Hello,
> Quite all is in the mail subject... I need to develop a network
> application client/server "easy to deploy".
> Is it easily possible to develop such an application with the omniORB
> API, which can connect a servant directly, just using an IP adress and
> a TCP port (and maybe some others static informations...) ?
Check the docs (and mailing list archives) for "corbaname" and "corbaloc".
br,
Martin
_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
More information about the omniORB-list
mailing list