Class POAProtocolMgr
- java.lang.Object
-
- org.omg.CORBA.LocalObject
-
- org.glassfish.enterprise.iiop.impl.POAProtocolMgr
-
- All Implemented Interfaces:
ProtocolManager,org.omg.CORBA.Object
@Service public final class POAProtocolMgr extends org.omg.CORBA.LocalObject implements ProtocolManager
This class implements the ProtocolManager interface for the RMI/IIOP ORB with POA (Portable Object Adapter). Note that the POA is now accessed only through the ReferenceFactoryManager for EJB.- Author:
- Vivek Nagar
-
-
Constructor Summary
Constructors Constructor Description POAProtocolMgr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnectObject(Remote remoteObj)Connect the RMI object to the protocol.EjbDescriptorgetEjbDescriptor(byte[] ejbKey)Called from SecurityMechanismSelector for each objref creationbyte[]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 EJB/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.-
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
-
-
-
-
Method Detail
-
initialize
public void initialize(org.omg.CORBA.ORB o)
- Specified by:
initializein interfaceProtocolManager
-
initializePOAs
public void initializePOAs() throws Exception- Specified by:
initializePOAsin interfaceProtocolManager- Throws:
Exception
-
initializeRemoteNaming
public void initializeRemoteNaming(Remote remoteNamingProvider) throws Exception
- Specified by:
initializeRemoteNamingin interfaceProtocolManager- Throws:
Exception
-
initializeNaming
public void initializeNaming() throws Exception- Specified by:
initializeNamingin interfaceProtocolManager- Throws:
Exception
-
getRemoteReferenceFactory
public 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.- Specified by:
getRemoteReferenceFactoryin interfaceProtocolManager- Parameters:
container- The container to useremoteHomeView- The remote home viewid- The object id- Returns:
- the ref factory
-
connectObject
public void connectObject(Remote remoteObj) throws RemoteException
Connect the RMI object to the protocol.- Specified by:
connectObjectin interfaceProtocolManager- Throws:
RemoteException
-
isStub
public boolean isStub(Object obj)
Description copied from interface:ProtocolManagerTrue if object is a corba stub- Specified by:
isStubin interfaceProtocolManager
-
isLocal
public boolean isLocal(Object obj)
- Specified by:
isLocalin interfaceProtocolManager
-
getObjectID
public byte[] getObjectID(org.omg.CORBA.Object obj)
- Specified by:
getObjectIDin interfaceProtocolManager
-
isIdentical
public boolean isIdentical(Remote obj1, Remote obj2)
Return true if the two object references refer to the same remote object.- Specified by:
isIdenticalin interfaceProtocolManager
-
validateTargetObjectInterfaces
public void validateTargetObjectInterfaces(Remote targetObj)
Description copied from interface:ProtocolManagerCheck that all Remote interfaces implemented by target object conform to the rules for valid RMI-IIOP interfaces. Throws runtime exception if validation fails.- Specified by:
validateTargetObjectInterfacesin interfaceProtocolManager
-
mapException
public Throwable mapException(Throwable exception)
Map the EJB/RMI exception to a protocol-specific (e.g. CORBA) exception- Specified by:
mapExceptionin interfaceProtocolManager
-
getEjbDescriptor
public EjbDescriptor getEjbDescriptor(byte[] ejbKey)
Called from SecurityMechanismSelector for each objref creation- Specified by:
getEjbDescriptorin interfaceProtocolManager
-
-