Class GlassFishORBHelper

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct, ORBLocator

    @Service
    public class GlassFishORBHelper
    extends Object
    implements org.glassfish.hk2.api.PostConstruct, ORBLocator
    This class exposes any orb/iiop functionality needed by modules in the app server. This prevents modules from needing any direct dependencies on the orb-iiop module.
    Author:
    Mahesh Kannan Date: Jan 17, 2009
    • Constructor Detail

      • GlassFishORBHelper

        public GlassFishORBHelper()
    • Method Detail

      • postConstruct

        public void postConstruct()
        Specified by:
        postConstruct in interface org.glassfish.hk2.api.PostConstruct
      • onShutdown

        public void onShutdown()
      • setORB

        public void setORB​(org.omg.CORBA.ORB orb)
      • getORB

        public org.omg.CORBA.ORB getORB()
        Get or create the default orb. This can be called for any process type. However, protocol manager and CosNaming initialization only take place for the Server.
        Specified by:
        getORB in interface ORBLocator
        Returns:
        an initialized ORB instance
      • getProtocolManager

        public ProtocolManager getProtocolManager()
        Get a protocol manager for creating remote references. ProtocolManager is only available in the server. Otherwise, this method returns null. If it's the server and the orb hasn't been already created, calling this method has the side effect of creating the orb.
      • isORBInitialized

        public boolean isORBInitialized()
      • getOTSPolicyType

        public int getOTSPolicyType()
      • getCSIv2PolicyType

        public int getCSIv2PolicyType()
      • getCSIv2Props

        public Properties getCSIv2Props()
      • setCSIv2Prop

        public void setCSIv2Prop​(String name,
                                 String value)
      • getORBInitialPort

        public int getORBInitialPort()
      • getORBPort

        public int getORBPort​(org.omg.CORBA.ORB orb)
        Specified by:
        getORBPort in interface ORBLocator
      • isEjbCall

        public boolean isEjbCall​(org.omg.PortableInterceptor.ServerRequestInfo sri)