Package org.javalite.async
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 Summary
Constructors Constructor Description SessionPool(String name, javax.jms.Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes all underlying JMS sessions.javax.jms.SessioncreateNewSession()javax.jms.SessiongetSession()
-
-
-
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
-
-