Class SessionPool

java.lang.Object
org.javalite.async.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 Details

    • SessionPool

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

    • 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