Class JmsServerSessionPool

  • All Implemented Interfaces:
    javax.jms.ServerSessionPool

    public class JmsServerSessionPool
    extends Object
    implements javax.jms.ServerSessionPool
    A generic jms session pool.
    Author:
    Adrian Brock
    • Constructor Detail

      • JmsServerSessionPool

        public JmsServerSessionPool​(JmsActivation activation)
        Create a new session pool
        Parameters:
        activation - the jms activation
    • Method Detail

      • getActivation

        public JmsActivation getActivation()
        Returns:
        the activation
      • start

        public void start()
                   throws Exception
        Start the server session pool
        Throws:
        Exception - for any error
      • stop

        public void stop()
        Stop the server session pool
      • getServerSession

        public javax.jms.ServerSession getServerSession()
                                                 throws javax.jms.JMSException
        Specified by:
        getServerSession in interface javax.jms.ServerSessionPool
        Throws:
        javax.jms.JMSException
      • returnServerSession

        protected void returnServerSession​(JmsServerSession session)
        Return the server session
        Parameters:
        session - the session
      • setupSessions

        protected void setupSessions()
                              throws Exception
        Setup the sessions
        Throws:
        Exception - for any error
      • teardownSessions

        protected void teardownSessions()
        Stop the sessions
      • setupConsumer

        protected void setupConsumer()
                              throws Exception
        Setup the connection consumer
        Throws:
        Exception - for any error
      • teardownConsumer

        protected void teardownConsumer()
        Stop the connection consumer