Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> object as Singelton for Corba in Oracle 9i ORB?
Hi out there,
I d like to have one instance of an object in the ORB (visibroker) that
comes with 9i (9.0.1 Linux).
So it should be a singleton and other sessions might request exactly
this object (probalble using another class with is non songleton in the
ORB).
There is an example from Oracle in the docu. However, they create the
object oin the client side (could do that as well) and store the
reference (IOR) in a file.
This file is read by by another client which than uses the IORs (the
session and object one) to (re)connect to the object (doing a
string_to_object).
however, i need to do the string_to_object on the server side. there the trouble starts. i get the IORs out of a database table ok, but somehow i cant string_to_object them. question is, which orb (ie how do i get it) do i have to use on the server?
orb = ServiceCtx.init (null, null, null, false, null); orb = org.omg.CORBA.ORB.init(); orb = _orb();
OR
is there a working example of an singelton in the database JVM in corba????
regards
christof
Received on Wed Jul 31 2002 - 04:29:17 CDT