|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.jms.asf.StdServerSessionPool
public class StdServerSessionPool
Implementation of ServerSessionPool.
Constructor Summary | |
---|---|
StdServerSessionPool(javax.jms.Destination destination,
javax.jms.Connection con,
boolean transacted,
int ack,
boolean useLocalTX,
javax.jms.MessageListener listener,
int minSession,
int maxSession,
long keepAlive,
org.jboss.tm.XidFactoryMBean xidFactory,
TransactionManager tm)
Construct a StdServerSessionPool. |
Method Summary | |
---|---|
void |
clear()
Clear the pool, clear out both threads and ServerSessions, connection.stop() should be run before this method. |
javax.jms.ServerSession |
getServerSession()
Get a server session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StdServerSessionPool(javax.jms.Destination destination, javax.jms.Connection con, boolean transacted, int ack, boolean useLocalTX, javax.jms.MessageListener listener, int minSession, int maxSession, long keepAlive, org.jboss.tm.XidFactoryMBean xidFactory, TransactionManager tm) throws javax.jms.JMSException
destination
- the destinationcon
- connection to get sessions fromtransacted
- transaction mode when not XA (ack
- ackmode when not XAlistener
- the listener the sessions will callminSession
- minumum number of sessions in the poolmaxSession
- maximum number of sessions in the poolkeepAlive
- the time to keep sessions alivexidFactory
- the xid factorytm
- the transaction manager
javax.jms.JMSException
- Description of ExceptionMethod Detail |
---|
public javax.jms.ServerSession getServerSession() throws javax.jms.JMSException
getServerSession
in interface javax.jms.ServerSessionPool
javax.jms.JMSException
- Failed to get a server session.public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |