org.glassfish.enterprise.iiop.impl
Class POAProtocolMgr

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by 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
POAProtocolMgr()
           
 
Method Summary
 void connectObject(java.rmi.Remote remoteObj)
          Connect the RMI object to the protocol.
 EjbDescriptor getEjbDescriptor(byte[] ejbKey)
          Called from SecurityMechanismSelector for each objref creation
 byte[] getObjectID(org.omg.CORBA.Object obj)
           
 RemoteReferenceFactory getRemoteReferenceFactory(EjbContainerFacade container, boolean remoteHomeView, java.lang.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(java.rmi.Remote remoteNamingProvider)
           
 boolean isIdentical(java.rmi.Remote obj1, java.rmi.Remote obj2)
          Return true if the two object references refer to the same remote object.
 boolean isLocal(java.lang.Object obj)
           
 boolean isStub(java.lang.Object obj)
           
 java.lang.Throwable mapException(java.lang.Throwable exception)
          Map the EJB/RMI exception to a protocol-specific (e.g.
 void validateTargetObjectInterfaces(java.rmi.Remote targetObj)
           
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POAProtocolMgr

public POAProtocolMgr()
Method Detail

initialize

public void initialize(org.omg.CORBA.ORB o)
Specified by:
initialize in interface ProtocolManager

initializePOAs

public void initializePOAs()
                    throws java.lang.Exception
Specified by:
initializePOAs in interface ProtocolManager
Throws:
java.lang.Exception

initializeRemoteNaming

public void initializeRemoteNaming(java.rmi.Remote remoteNamingProvider)
                            throws java.lang.Exception
Specified by:
initializeRemoteNaming in interface ProtocolManager
Throws:
java.lang.Exception

initializeNaming

public void initializeNaming()
                      throws java.lang.Exception
Specified by:
initializeNaming in interface ProtocolManager
Throws:
java.lang.Exception

getRemoteReferenceFactory

public RemoteReferenceFactory getRemoteReferenceFactory(EjbContainerFacade container,
                                                        boolean remoteHomeView,
                                                        java.lang.String id)
Return a factory that can be used to create/destroy remote references for a particular EJB type.

Specified by:
getRemoteReferenceFactory in interface ProtocolManager
Parameters:
container - The container to use
remoteHomeView - The remote home view
id - The object id
Returns:
the ref factory

connectObject

public void connectObject(java.rmi.Remote remoteObj)
                   throws java.rmi.RemoteException
Connect the RMI object to the protocol.

Specified by:
connectObject in interface ProtocolManager
Throws:
java.rmi.RemoteException

isStub

public boolean isStub(java.lang.Object obj)
Specified by:
isStub in interface ProtocolManager

isLocal

public boolean isLocal(java.lang.Object obj)
Specified by:
isLocal in interface ProtocolManager

getObjectID

public byte[] getObjectID(org.omg.CORBA.Object obj)
Specified by:
getObjectID in interface ProtocolManager

isIdentical

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

Specified by:
isIdentical in interface ProtocolManager

validateTargetObjectInterfaces

public void validateTargetObjectInterfaces(java.rmi.Remote targetObj)
Specified by:
validateTargetObjectInterfaces in interface ProtocolManager

mapException

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

Specified by:
mapException in interface ProtocolManager

getEjbDescriptor

public EjbDescriptor getEjbDescriptor(byte[] ejbKey)
Called from SecurityMechanismSelector for each objref creation

Specified by:
getEjbDescriptor in interface ProtocolManager


Copyright © 2012 GlassFish Community. All Rights Reserved.