Skip to main content

What is the use of setting org.omg.CORBA.ORBSingletonClass in VisiBroker?

  • February 16, 2013
  • 0 replies
  • 0 views

Problem

  • Product Name: VisiBroker
  • Product Version:5.x & later
  • Product Component: ORB
  • Platform/OS Version: All

What is the use of setting org.omg.CORBA.ORBSingletonClass in VisiBroker?

Resolution

The no-argument version of the method ORB.init() is used primarily as a factory for TypeCode objects, which are used by Helper classes to implement the method type. It is also used to create Any objects that are used to describe union labels (as part of creating a TypeCode object for a union).

This method is not intended to be used by applets, and in the event that it is called in an applet environment, the ORB it returns is restricted so that it can be used only as a factory for TypeCode objects. Any TypeCode objects it produces can be safely shared among untrusted applets.

If an ORB is created using this method from an applet, a system exception will be thrown if methods other than those for creating TypeCode objects are invoked.

To obtain a truly singleton VisiBroker Java ORB, one needs to set the following property correctly:

org.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORBSingleton


#com.inprise.vbroker.orb.ORBSingleton
#Security
#VisiBroker
#org.omg.CORBA.ORBSingletonClass