[omniORB] Dynamic Servant Creation

Alex Tingle alex.omniorb at firetree.net
Wed Jun 22 22:49:44 BST 2005


Hi Wade,

> Is there some way that when a client attempts to retreive an object
> reference, the servant is dynamically created (by the POA Manager?)?

You can do this with 'normal' CORBA. You can construct servants (and their corresponding CORBA objects) on the fly, when you need them.

But I don't think that's what you're asking...

> I want to be able to retreive an object reference in my own local
> application, but not have to manually kick off the remote application
> that contains the object implementation.

You need to look up "Servant Activator". If you create a POA with USE_SERVANT_MANAGER policy, and then install a ServantActivator as its servant manager, then you can create servant objects when the client tries to connect to them.

Obviously you need to obtain the object reference from somewhere: You can use PortableServer::POA::create_reference_with_id() to create object references without the need to have an actual servant.

regards,

-Alex

--

On Wed, 22 Jun 2005 15:01:16 -0500
Wade Hunkapiller <incrediblehunk at gmail.com> wrote:

> Forgive me if my question is a little naive, but I'm pretty new to
> using CORBA and omniORB.
> 
> Is there some way that when a client attempts to retreive an object
> reference, the servant is dynamically created (by the POA Manager?)?
> 
> I want to be able to retreive an object reference in my own local
> application, but not have to manually kick off the remote application
> that contains the object implementation.
> 
> I'm pretty sure this can be done, but I'm not sure where to begin. 
> Any help would be greatly appreciated.
> 
> Thanks,
> Wade
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list


-- 
:: alex tingle
:: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net  +44-7901-552763 



More information about the omniORB-list mailing list