Package org.glassfish.jndi.cosnaming
Class RemoteToCorba
java.lang.Object
org.glassfish.jndi.cosnaming.RemoteToCorba
- All Implemented Interfaces:
StateFactory
StateFactory that turns java.rmi.Remote objects to org.omg.CORBA.Object.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RemoteToCorba
public RemoteToCorba()
-
-
Method Details
-
getStateToBind
public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?, ?> env) throws NamingExceptionReturns the CORBA object for a Remote object. If input is not a Remote object, or if Remote object uses JRMP, return null. If the RMI-IIOP library is not available, throw ConfigurationException.- Specified by:
getStateToBind
in interfaceStateFactory
- Parameters:
orig
- The object to turn into a CORBA object. If not Remote, or if is a JRMP stub or impl, return null.name
- Ignoredctx
- The non-null CNCtx whose ORB to use.env
- Ignored- Returns:
- The CORBA object for
orig
or null. - Throws:
ConfigurationException
- If the CORBA object cannot be obtained due to configuration problems, for instance, if RMI-IIOP not available.NamingException
- If some other problem prevented a CORBA object from being obtained from the Remote object.
-