[omniORB] Can omniORB be initialized twice by the same applic
ation?
Jean-Francois Tremblay
Jean-Francois.Tremblay@discreet.com
Fri, 08 Oct 1999 11:08:56 -0400
Thank you very much!
Very Helpful :)
Theo Aukerman wrote:
>
> I believe the omniORB documentation states that you can do this.
>
> Further support is given by the first few lines of the (2.7.1) ORB_init
> routine pasted below.
>
> ______________________________________________________
> omni_mutex_lock sync(internalLock);
>
> if (!parse_ORB_args(argc,argv,orb_identifier)) {
> throw CORBA::INITIALIZE(0,CORBA::COMPLETED_NO);
> }
> if (orb)
> return CORBA::ORB::_duplicate(orb);
> ______________________________________________________
>
> They lock a mutex (thread safety).
> If the orb has been initialized, they return a duplicate, rather than
> re-initialize.
>
> I hope 2.8 and 3.0 behave similarly.
>
> Theo
>
> -----Original Message-----
> From: Jean-Francois Tremblay
> [mailto:Jean-Francois.Tremblay@discreet.com]
> Sent: Friday, October 08, 1999 7:45 AM
> To: Omniorb List
> Subject: [omniORB] Can omniORB be initialized twice by the same
> application?
>
> Hi,
>
> the title says it all! :)
>
> Here's my problem I'm working on libraries that uses Corba that are
> required to build an application. But there is somebody else working on
> the same application which is already using Corba and thus initializing
> it. My library is not yet ready to be link to this application but I'm
> wondering if this (2 initializations) will be problematic to omniORB
> (2.7.1)?
>
> Thanks for any advice?
>
> --
> Jean-Francois Tremblay* | Discreet*
> Software Developer | a division of Autodesk
> Tel: (514) 954-7310 | 10 Duke Street
> Fax: (514) 393-1266 | Montreal (QC), Canada, H3C 2L7
> mailto: jean-francoist@discreet.com | http://www.discreet.com
--
Jean-Francois Tremblay* | Discreet*
Software Developer | a division of Autodesk
Tel: (514) 954-7310 | 10 Duke Street
Fax: (514) 393-1266 | Montreal (QC), Canada, H3C 2L7
mailto: jean-francoist@discreet.com | http://www.discreet.com