[omniORB] is the orb a singleton
Duncan Grisby
dgrisby@uk.research.att.com
Thu, 14 Dec 2000 15:11:18 +0000
On Thursday 14 December, "ERIKSSON,TOBIAS (A-Sweden,ex1)" wrote:
> Is the orb-object (CORBA::ORB_var orb = CORBA::ORB_init( argc, argv,
> "omniORB3" ) ) a singleton object?
> What I am after is this, if I would in my application/server use the orb
> everywhere in the application, cause otherwise I would have to have some
> class that had the responsability over the orb-object so that it is only
> created once and accessed many times.
Yes, the ORB is a singleton. Every time you call ORB_init(), you get
the same object.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --