[omniORB] Any way to differentiate clients with omniORB

BaileyK at schneider.com BaileyK at schneider.com
Tue Apr 15 12:00:52 BST 2008


I don't think there's anything simple.  Possibilities include

1) Use a different servant, and thus a distinct CORBA object, for each
client.
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
http://www.omniorb-support.com/omniwiki/OmniOrb4DevelopmentStatus#head-7b5cf379a284b2223858b197f61d632c0d35fd46

---
Kendall Bailey
Engineering & Research


omniorb-list-bounces at omniorb-support.com wrote on 04/15/2008 10:13:44 AM:

> Hello.
>
> Is there any way with omniORB to determine within a CORBA Function-Call
> on the server side from which Client (e.g. IP-Address+Port) the call
> originated? (Maybe something like the CoGetCallContext(..) function for
> DCOM; although I'm not even sure that does the trick)
>
> Our problem is that we have to adhere to a standardized CORBA interface
> that does not incorporate multi-client functionality, but the customer
> still needs (a simple setup for) multiple clients so I'm currently
> searching for a workaround.
>
> any pointers appreciated,
> 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