FileDocCategorySizeDatePackage
ProtocolManager.javaAPI DocGlassfish v2 API4104Fri May 04 22:33:16 BST 2007com.sun.enterprise

ProtocolManager

public interface ProtocolManager
The ProtocolManager interface specifies the functionality of the remote communication layer, which provides the support for distribution described in Chapter 13 of the EJB spec. Possible implementations of the ProtocolManager include RMI/IIOP, RMI/JRMP, RMI/DCOM, RMI/HTTP ....
author
Vivek Nagar

Fields Summary
Constructors Summary
Methods Summary
public voidconnectObject(java.rmi.Remote remoteObj)
Connect the RMI object to the protocol.

public RemoteReferenceFactorygetRemoteReferenceFactory(com.sun.ejb.Container container, boolean remoteHomeView, java.lang.String id)
Return a factory that can be used to create/destroy remote references for a particular EJB type.

public voidinitializeNaming(java.io.File dbDir, int orbInitialPort)

public booleanisIdentical(java.rmi.Remote obj1, java.rmi.Remote obj2)
Return true if the two object references refer to the same remote object.

public java.lang.ThrowablemapException(java.lang.Throwable exception)
Map the RMI exception to a protocol-specific (e.g. CORBA) exception

public voidvalidateTargetObjectInterfaces(java.rmi.Remote targetObj)
Check that all Remote interfaces implemented by target object conform to the rules for valid RMI-IIOP interfaces. Throws runtime exception if validation fails.