Interface ProtocolManager

  • All Known Implementing Classes:
    POAProtocolMgr

    @Contract
    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
    • 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)
      • getEjbDescriptor

        EjbDescriptor getEjbDescriptor​(byte[] ejbKey)