[PolyORB-users] Activate_Object_With_Id

Jérôme Hugues hugues at infres.enst.fr
Thu Jul 3 08:17:42 CEST 2008

Le 3 juil. 08 à 00:15, Marcelo Coraça de Freitas a écrit :

> Every example I've found in the internet on how to use it consists on
> the following steps:
> Creating a POA with the following Policies:
> 	LifespanPolicy          => PERSISTENT
> 	IdAssignmentPolicy      => USER_ID
> 	RequestProcessingPolicy => USE_ACTIVE_OBJECT_MAP_ONLY
> Run Activate_Object_With_Id on the created POA.
> But when I try to create the POA with this policy I get the
> PortableServer.POA.InfalidPolicy exception.
> Thus I suppose this policy isn't implemented in PolyORB. Then my
> question: how can I use this method? What am I missing?

Without the correct piece of code, it is hard to answer,
I implemented this policy in PolyORB in 2002, so you should find it ;)

You will find a piece of code that exercise it in PolyORB's testsuite,  
see testsuite/corba/portablserver directory,
in test000_setup.adb
You'll find it when checkout'ing PolyORB from AdaCore svn repository  
on libre.adacore.com

My best guess wouldbe that you used the wrong POA when making your call.

> Also, is it possible to register an object in such a way I can  
> access it
> with:
> 'corbaloc:iiop:1.2 at localhost:2809/the_poa/some_object'
> instead with those ugly IDs I get when activating it in the usual way?

As I said in my previous mail, this is not possible per the CORBA spec  
I have, and the examples I've seen
were all using some vendor specific API. This could be an enhancement  
for PolyORB, if you wish to contribute it.
I may have missed it in the latest CORBA API, but I don't think the  
OMG made any advance in this part.

Jérôme Hugues, ENST Paris

More information about the PolyORB-users mailing list