|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.exolab.jms.client.JmsServerSessionPool
This class is an example implements of the ServerSessionPool interface, which is primarily by the application server facility. It is the responsibility of the application server to implement this class.
The ServerSessionPool manages a collection of ServerSession objects, which in themselves map a thread to a Session object.
Before using the class the client must call the init(int, javax.jms.MessageListener) method.
| Method Summary | |
javax.jms.ServerSession |
getServerSession()
|
static void |
init(int size,
javax.jms.MessageListener listener)
This method initialises the pool and must be called before any other class or instance methods. |
static JmsServerSessionPool |
instance()
Return the singleton instance of the server session pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void init(int size,
javax.jms.MessageListener listener)
size - server session pool sizelistener - message listener that sessions will be
initialised with.
public static JmsServerSessionPool instance()
throws javax.jms.JMSException
If init hasn't been called before retrieving the instance then a JMSException is raised.
javax.jms.JMSException -
public javax.jms.ServerSession getServerSession()
throws javax.jms.JMSException
getServerSession in interface javax.jms.ServerSessionPool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||