Interface ProtocolManager
-
- All Known Implementing Classes:
POAProtocolMgr
@Contract public interface ProtocolManagerThe 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnectObject(Remote remoteObj)Connect the RMI object to the protocol.EjbDescriptorgetEjbDescriptor(byte[] ejbKey)byte[]getObjectID(org.omg.CORBA.Object obj)RemoteReferenceFactorygetRemoteReferenceFactory(EjbContainerFacade container, boolean remoteHomeView, String id)Return a factory that can be used to create/destroy remote references for a particular EJB type.voidinitialize(org.omg.CORBA.ORB o)voidinitializeNaming()voidinitializePOAs()voidinitializeRemoteNaming(Remote remoteNamingProvider)booleanisIdentical(Remote obj1, Remote obj2)Return true if the two object references refer to the same remote object.booleanisLocal(Object obj)booleanisStub(Object obj)True if object is a corba stubThrowablemapException(Throwable exception)Map the RMI exception to a protocol-specific (e.g.voidvalidateTargetObjectInterfaces(Remote targetObj)Check that all Remote interfaces implemented by target object conform to the rules for valid RMI-IIOP interfaces.
-
-
-
Method Detail
-
initialize
void initialize(org.omg.CORBA.ORB o)
-
initializeRemoteNaming
void initializeRemoteNaming(Remote remoteNamingProvider) throws Exception
- Throws:
Exception
-
getRemoteReferenceFactory
RemoteReferenceFactory getRemoteReferenceFactory(EjbContainerFacade container, boolean remoteHomeView, String id)
Return a factory that can be used to create/destroy remote references for a particular EJB type.
-
isIdentical
boolean isIdentical(Remote obj1, Remote obj2)
Return true if the two object references refer to the same remote object.
-
validateTargetObjectInterfaces
void validateTargetObjectInterfaces(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.
-
mapException
Throwable mapException(Throwable exception)
Map the RMI exception to a protocol-specific (e.g. CORBA) exception
-
isStub
boolean isStub(Object obj)
True if object is a corba stub
-
isLocal
boolean isLocal(Object obj)
-
getObjectID
byte[] getObjectID(org.omg.CORBA.Object obj)
-
connectObject
void connectObject(Remote remoteObj) throws RemoteException
Connect the RMI object to the protocol.- Throws:
RemoteException
-
getEjbDescriptor
EjbDescriptor getEjbDescriptor(byte[] ejbKey)
-
-