Class SessionPool


  • public class SessionPool
    extends Object
    Serves as a pool of sessions for local sending/receiving to/from the Async.
    Author:
    igor on 11/2/17.
    • Constructor Detail

      • SessionPool

        public SessionPool​(String name,
                           javax.jms.Connection connection)
    • Method Detail

      • getSession

        public javax.jms.Session getSession()
                                     throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • close

        public void close()
        Closes all underlying JMS sessions.
      • createNewSession

        public javax.jms.Session createNewSession()
                                           throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException