[omniORB] Any way to differentiate clients with omniORB
0xCDCDCDCD at gmx.at
Wed Apr 16 09:26:48 BST 2008
BaileyK at schneider.com wrote:
> I don't think there's anything simple. Possibilities include
> 1) Use a different servant, and thus a distinct CORBA object, for each
> 2) If sharing servant state across clients is necessary, use a single
> servant and register it multiple times with a POA with distinct object IDs.
> Give each client a distinct IOR, and then the POA can tell you which IOR
> was used to make the up-call.
> 3) Use an interceptor to store socket IP/port information in thread-local
> storage and then access that within the up-call.
> For #2 see
Thanks for these pointers!
Option 2 sounds quite promising ... would this conceptually create 2
CORBA Objects supported by one servant, or would it still be one CORBA
Object that only is registered twice? (What would _is_equivalent(..)
tell me?) Also, at the moment I'm just running the default POA with the
default policies (omni 4.1.2) ... I guess I'll have to do something
... anyways I'll follow your link and try it out from there ...
More information about the omniORB-list