[omniORB] Any way to differentiate clients with omniORB

Martin Trappel 0xCDCDCDCD at gmx.at
Wed Apr 16 18:19:38 BST 2008


BaileyK at schneider.com wrote:
> Yes, #2 would create multiple CORBA objects.  Mapping them all to the same
> servant can be done in a number of ways.  You could use the
> USE_DEFAULT_SERVANT request processing policy when creating a child POA.
> Then have a factory object in the root poa which bootstraps the clients by
> assigning a distinct ObjectID to each client and creating an object
> reference using the child POA and ObjectID.  The default servant can use
> POACurrent to access the ObjectID.  This is similar to the way a session
> cookie works for a web browser.
> 
> You can also use a ServantLocator, and examine the ObjectID in the
> preinvoke() call.  I don't know which is more efficient.
> 
> It's been some time since I've used this stuff, so I may be wrong on some
> details.  If you don't have the Henning/Vinoski book, you should probably
> get it.
> 
> (...)
> 

Thanks for the additional info!
(And, yes, I have the book. Would be quite lost otherwise :) )

I'll try to let you know what's come of it.

br,
Martin



More information about the omniORB-list mailing list