Andreas,

did you experience the problem when running JBoss from a command shell with no 
CLASSPATH variable set (to make sure that no strange things, like the J2EE reference 
implementation, screw things up...)?

Luke,

> I'm using the standard jdk orb. I also get a security exception when
> trying to use the Singleton orb instance - this is a bit 
> strange as the
> documentation implies the access to this should only be 
> restricted when
> using an applet. This is a bit of a drag, as calling
> org.omg.CORBA.ORB.init(args, props) will create a new orb 
> instance each
> time which isn't very efficient if done for every call.

The Singleton ORB could be used in applications or applets. The Singleton ORB is 
really a crippled ORB with only limited functionality (e.g. creating typecodes). 

Calling ORB.init(...) multiple times (at least with different configuration arguments, 
e.g. different ORBNames) should return different ORB instances. This is not only 
inefficient; it would also yield a faulty behavior at least if your doing this on the 
serverside. A better approach would be to create a class that wraps your "fully 
functional ORB" instance as a singleton.

Regards,
Per


Reply via email to