Re: Creating CORBA objects in a child process



On Sun, 2004-12-12 at 01:11 +0000, nickg glencros demon co uk wrote:
> Hello,
> 
> I'd appreciate guidance on the following scenario. What I ideally want
> to do is:
> 
> Create a CORBA server with a factory in it, and allow clients to
> request object creation, but for the objects to actually be created in
> a child process. Another way of describing this, is that the factory
> is capable of creating child CORBA processes.
> 
> For this to be possible, on receipt of the request, the factory might
> create a new ORB and any other setup, create a new Object, fork, and
> then:
> 
> * the parent would tear down the new ORB and return the Object
> * the child would clean up the old ORB

Your ideal scenario seem a little confusing - Why destroy the old ORB? 

Anyway, there is nothing wrong in factory objects in CORBA. All that is
needed, if we forget about threading issues, are a method with an "out
someInterface" method. How you manage threading is an implementation
detail.

-- 
  jules





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]