public class

RemoteToCorba

extends Object
implements StateFactory
java.lang.Object
   ↳ com.sun.jndi.cosnaming.RemoteToCorba

Class Overview

StateFactory that turns java.rmi.Remote objects to org.omg.CORBA.Object.

Summary

Public Constructors
RemoteToCorba()
Public Methods
Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?, ?> env)
Returns the CORBA object for a Remote object.
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.naming.spi.StateFactory

Public Constructors

public RemoteToCorba ()

Public Methods

public Object getStateToBind (Object orig, Name name, Context ctx, Hashtable<?, ?> env)

Returns 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.

Parameters
orig The object to turn into a CORBA object. If not Remote, or if is a JRMP stub or impl, return null.
name Ignored
ctx 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.