JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.core.dist.corba
Class CORBARemoteRef

java.lang.Object
  |
  +--org.objectweb.jac.core.dist.RemoteRef
        |
        +--org.objectweb.jac.core.dist.corba.CORBARemoteRef
All Implemented Interfaces:
Serializable

public class CORBARemoteRef
extends RemoteRef

CORBARemoteRef stores the reference of a remote object that can be accessed by the CORBA/IIOP protocol.

Author:
Renaud Pawlak, Lionel Seinturier
See Also:
Serialized Form

Field Summary
protected static String cosNamingEntryType
          The string used to identify the type of objects registered in the COS Naming.
protected static NamingContext nc
          The root naming context of the COSNaming.
protected static ORB orb
          The CORBA ORB.
protected static org.omg.PortableServer.POA poa
          The CORBA root POA.
protected  String remContString
          This is the container CORBA remote reference stringified.
 
Fields inherited from class org.objectweb.jac.core.dist.RemoteRef
name, remCont, remIndex, toAdaptProp
 
Constructor Summary
CORBARemoteRef()
           
 
Method Summary
 void reresolve()
          This method re-gets the reference of a remote container.
 void resolve(String contName)
          This method sets the reference of the remote CORBA container starting from a logical name registered in the COS Naming.
 
Methods inherited from class org.objectweb.jac.core.dist.RemoteRef
create, create, create, equals, getName, getRemCont, getRemIndex, invoke, invoke, invokeRoleMethod, remoteCopy, remoteCopy, remoteNew, remoteNew, remoteNewWithCopy, remoteNewWithCopy, remoteNewWithCopy, remoteNewWithCopy, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cosNamingEntryType

protected static final String cosNamingEntryType
The string used to identify the type of objects registered in the COS Naming.

See Also:
Constant Field Values

remContString

protected String remContString
This is the container CORBA remote reference stringified.


orb

protected static ORB orb
The CORBA ORB.


poa

protected static org.omg.PortableServer.POA poa
The CORBA root POA.


nc

protected static NamingContext nc
The root naming context of the COSNaming.

Constructor Detail

CORBARemoteRef

public CORBARemoteRef()
Method Detail

resolve

public void resolve(String contName)
This method sets the reference of the remote CORBA container starting from a logical name registered in the COS Naming.

Overrides:
resolve in class RemoteRef
Parameters:
contName - the name of the container
Returns:
the container reference
See Also:
RMIRemoteRef.resolve(String), resolve(String)

reresolve

public void reresolve()
This method re-gets the reference of a remote container. CORBA do not linearalize remote references in a standard way. Thus a remote reference may need to be adapted whenever it is transmitted. This method is called when a remote reference is received by a RemoteContainer.

Overrides:
reresolve in class RemoteRef
Returns:
the container reference
See Also:
RMIRemoteRef.reresolve(), reresolve()

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli