Class OutboundConnectionFactory

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        define serialVersionUID for interoperability
        See Also:
        Constant Field Values
      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
      • cxManager

        protected jakarta.resource.spi.ConnectionManager cxManager
        Manager for connection pooling.
      • reference

        protected Reference reference
        Naming reference of this instance.
    • Constructor Detail

      • OutboundConnectionFactory

        OutboundConnectionFactory​(ManagedConnectionFactoryImpl mcf,
                                  jakarta.resource.spi.ConnectionManager cxManager)
        Constructs an OutboundConnectionFactory instance.
        Parameters:
        mcf - Central manager for outbound connectivity.
        cxManager - Manager for connection pooling.
    • Method Detail

      • setReference

        public void setReference​(Reference ref)
        Sets the naming reference of this factory.
        Specified by:
        setReference in interface jakarta.resource.Referenceable
      • createConnection

        public jakarta.jms.Connection createConnection()
                                                throws jakarta.jms.JMSException
        Requests a connection for the default user, eventually returns an OutboundConnection instance.
        Specified by:
        createConnection in interface jakarta.jms.ConnectionFactory
        Throws:
        jakarta.jms.JMSSecurityException - If connecting is not allowed.
        jakarta.jms.IllegalStateException - If the underlying JORAM server is not reachable.
        jakarta.jms.JMSException - Generic exception.
      • createConnection

        public jakarta.jms.Connection createConnection​(String userName,
                                                       String password)
                                                throws jakarta.jms.JMSException
        Requests a connection for a given user, eventually returns an OutboundConnection instance.
        Specified by:
        createConnection in interface jakarta.jms.ConnectionFactory
        Throws:
        jakarta.jms.JMSSecurityException - If connecting is not allowed.
        jakarta.jms.IllegalStateException - If the underlying JORAM server is not reachable.
        jakarta.jms.JMSException - Generic exception.
      • createContext

        public jakarta.jms.JMSContext createContext()
        Specified by:
        createContext in interface jakarta.jms.ConnectionFactory
      • createContext

        public jakarta.jms.JMSContext createContext​(String userName,
                                                    String password)
        Specified by:
        createContext in interface jakarta.jms.ConnectionFactory
      • createContext

        public jakarta.jms.JMSContext createContext​(String userName,
                                                    String password,
                                                    int sessionMode)
        Specified by:
        createContext in interface jakarta.jms.ConnectionFactory
      • createContext

        public jakarta.jms.JMSContext createContext​(int sessionMode)
        Specified by:
        createContext in interface jakarta.jms.ConnectionFactory