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 void
connectObject(Remote remoteObj)
Connect the RMI object to the protocol.EjbDescriptor
getEjbDescriptor(byte[] ejbKey)
Called from SecurityMechanismSelector for each objref creationbyte[]
getObjectID(org.omg.CORBA.Object obj)
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.void
initialize(org.omg.CORBA.ORB o)
void
initializeNaming()
void
initializePOAs()
void
initializeRemoteNaming(Remote remoteNamingProvider)
boolean
isIdentical(Remote obj1, Remote obj2)
Return true if the two object references refer to the same remote object.boolean
isLocal(Object obj)
boolean
isStub(Object obj)
True if object is a corba stubThrowable
mapException(Throwable exception)
Map the EJB/RMI exception to a protocol-specific (e.g.void
validateTargetObjectInterfaces(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:
initialize
in interfaceProtocolManager
-
initializePOAs
public void initializePOAs() throws Exception
- Specified by:
initializePOAs
in interfaceProtocolManager
- Throws:
Exception
-
initializeRemoteNaming
public void initializeRemoteNaming(Remote remoteNamingProvider) throws Exception
- Specified by:
initializeRemoteNaming
in interfaceProtocolManager
- Throws:
Exception
-
initializeNaming
public void initializeNaming() throws Exception
- Specified by:
initializeNaming
in 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:
getRemoteReferenceFactory
in 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:
connectObject
in interfaceProtocolManager
- Throws:
RemoteException
-
isStub
public boolean isStub(Object obj)
Description copied from interface:ProtocolManager
True if object is a corba stub- Specified by:
isStub
in interfaceProtocolManager
-
isLocal
public boolean isLocal(Object obj)
- Specified by:
isLocal
in interfaceProtocolManager
-
getObjectID
public byte[] getObjectID(org.omg.CORBA.Object obj)
- Specified by:
getObjectID
in interfaceProtocolManager
-
isIdentical
public boolean isIdentical(Remote obj1, Remote obj2)
Return true if the two object references refer to the same remote object.- Specified by:
isIdentical
in interfaceProtocolManager
-
validateTargetObjectInterfaces
public void validateTargetObjectInterfaces(Remote targetObj)
Description copied from interface:ProtocolManager
Check 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:
validateTargetObjectInterfaces
in interfaceProtocolManager
-
mapException
public Throwable mapException(Throwable exception)
Map the EJB/RMI exception to a protocol-specific (e.g. CORBA) exception- Specified by:
mapException
in interfaceProtocolManager
-
getEjbDescriptor
public EjbDescriptor getEjbDescriptor(byte[] ejbKey)
Called from SecurityMechanismSelector for each objref creation- Specified by:
getEjbDescriptor
in interfaceProtocolManager
-
-