Class JmsSessionFactoryImpl

    • Constructor Detail

      • JmsSessionFactoryImpl

        public JmsSessionFactoryImpl​(javax.resource.spi.ManagedConnectionFactory mcf,
                                     javax.resource.spi.ConnectionManager cm,
                                     int type)
    • Method Detail

      • setReference

        public void setReference​(Reference reference)
        Specified by:
        setReference in interface javax.resource.Referenceable
      • setUserName

        public void setUserName​(String name)
      • setPassword

        public void setPassword​(char[] password)
      • createQueueSession

        public javax.jms.QueueSession createQueueSession​(boolean transacted,
                                                         int acknowledgeMode)
                                                  throws javax.jms.JMSException
        Specified by:
        createQueueSession in interface javax.jms.QueueConnection
        Throws:
        javax.jms.JMSException
      • createConnectionConsumer

        public javax.jms.ConnectionConsumer createConnectionConsumer​(javax.jms.Queue queue,
                                                                     String messageSelector,
                                                                     javax.jms.ServerSessionPool sessionPool,
                                                                     int maxMessages)
                                                              throws javax.jms.JMSException
        Specified by:
        createConnectionConsumer in interface javax.jms.QueueConnection
        Throws:
        javax.jms.JMSException
      • createTopicSession

        public javax.jms.TopicSession createTopicSession​(boolean transacted,
                                                         int acknowledgeMode)
                                                  throws javax.jms.JMSException
        Specified by:
        createTopicSession in interface javax.jms.TopicConnection
        Throws:
        javax.jms.JMSException
      • createConnectionConsumer

        public javax.jms.ConnectionConsumer createConnectionConsumer​(javax.jms.Topic topic,
                                                                     String messageSelector,
                                                                     javax.jms.ServerSessionPool sessionPool,
                                                                     int maxMessages)
                                                              throws javax.jms.JMSException
        Specified by:
        createConnectionConsumer in interface javax.jms.TopicConnection
        Throws:
        javax.jms.JMSException
      • createDurableConnectionConsumer

        public javax.jms.ConnectionConsumer createDurableConnectionConsumer​(javax.jms.Topic topic,
                                                                            String subscriptionName,
                                                                            String messageSelector,
                                                                            javax.jms.ServerSessionPool sessionPool,
                                                                            int maxMessages)
                                                                     throws javax.jms.JMSException
        Specified by:
        createDurableConnectionConsumer in interface javax.jms.Connection
        Specified by:
        createDurableConnectionConsumer in interface javax.jms.TopicConnection
        Throws:
        javax.jms.JMSException
      • getClientID

        public String getClientID()
                           throws javax.jms.JMSException
        Specified by:
        getClientID in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • setClientID

        public void setClientID​(String cID)
                         throws javax.jms.JMSException
        Specified by:
        setClientID in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • getMetaData

        public javax.jms.ConnectionMetaData getMetaData()
                                                 throws javax.jms.JMSException
        Specified by:
        getMetaData in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • getExceptionListener

        public javax.jms.ExceptionListener getExceptionListener()
                                                         throws javax.jms.JMSException
        Specified by:
        getExceptionListener in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • setExceptionListener

        public void setExceptionListener​(javax.jms.ExceptionListener listener)
                                  throws javax.jms.JMSException
        Specified by:
        setExceptionListener in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • start

        public void start()
                   throws javax.jms.JMSException
        Specified by:
        start in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • stop

        public void stop()
                  throws javax.jms.JMSException
        Specified by:
        stop in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • close

        public void close()
                   throws javax.jms.JMSException
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • closeSession

        public void closeSession​(JmsSession session)
                          throws javax.jms.JMSException
        Description copied from interface: JmsSessionFactory
        Notification that a session is closed
        Specified by:
        closeSession in interface JmsSessionFactory
        Throws:
        javax.jms.JMSException - for any error
      • addTemporaryQueue

        public void addTemporaryQueue​(javax.jms.TemporaryQueue temp)
        Description copied from interface: JmsSessionFactory
        Add a temporary queue
        Specified by:
        addTemporaryQueue in interface JmsSessionFactory
        Parameters:
        temp - the temporary queue
      • addTemporaryTopic

        public void addTemporaryTopic​(javax.jms.TemporaryTopic temp)
        Description copied from interface: JmsSessionFactory
        Add a temporary topic
        Specified by:
        addTemporaryTopic in interface JmsSessionFactory
        Parameters:
        temp - the temporary topic
      • createConnectionConsumer

        public javax.jms.ConnectionConsumer createConnectionConsumer​(javax.jms.Destination destination,
                                                                     javax.jms.ServerSessionPool pool,
                                                                     int maxMessages)
                                                              throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • createConnectionConsumer

        public javax.jms.ConnectionConsumer createConnectionConsumer​(javax.jms.Destination destination,
                                                                     String name,
                                                                     javax.jms.ServerSessionPool pool,
                                                                     int maxMessages)
                                                              throws javax.jms.JMSException
        Specified by:
        createConnectionConsumer in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • createSession

        public javax.jms.Session createSession​(boolean transacted,
                                               int acknowledgeMode)
                                        throws javax.jms.JMSException
        Specified by:
        createSession in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • createSession

        public javax.jms.Session createSession​(int sessionMode)
                                        throws javax.jms.JMSException
        Specified by:
        createSession in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • createSession

        public javax.jms.Session createSession()
                                        throws javax.jms.JMSException
        Specified by:
        createSession in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • createSharedConnectionConsumer

        public javax.jms.ConnectionConsumer createSharedConnectionConsumer​(javax.jms.Topic topic,
                                                                           String subscriptionName,
                                                                           String messageSelector,
                                                                           javax.jms.ServerSessionPool sessionPool,
                                                                           int maxMessages)
                                                                    throws javax.jms.JMSException
        Specified by:
        createSharedConnectionConsumer in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • createSharedDurableConnectionConsumer

        public javax.jms.ConnectionConsumer createSharedDurableConnectionConsumer​(javax.jms.Topic topic,
                                                                                  String subscriptionName,
                                                                                  String messageSelector,
                                                                                  javax.jms.ServerSessionPool sessionPool,
                                                                                  int maxMessages)
                                                                           throws javax.jms.JMSException
        Specified by:
        createSharedDurableConnectionConsumer in interface javax.jms.Connection
        Throws:
        javax.jms.JMSException
      • allocateConnection

        protected JmsSession allocateConnection​(boolean transacted,
                                                int acknowledgeMode,
                                                int sessionType)
                                         throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • checkClosed

        protected void checkClosed()
                            throws javax.jms.IllegalStateException
        Throws:
        javax.jms.IllegalStateException