|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.jms.asf.StdServerSessionPool
Implementation of ServerSessionPool.
Created: Thu Dec 7 17:02:03 2000
| Constructor Summary | |
StdServerSessionPool(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)
Construct a StdServerSessionPool using the default pool size. |
|
| 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.Connection con,
boolean transacted,
int ack,
boolean useLocalTX,
javax.jms.MessageListener listener,
int minSession,
int maxSession,
long keepAlive,
org.jboss.tm.XidFactoryMBean xidFactory)
throws javax.jms.JMSException
con - connection to get sessions fromtransacted - transaction mode when not XAack - 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 alive
javax.jms.JMSException - for any error| Method Detail |
public javax.jms.ServerSession getServerSession()
throws javax.jms.JMSException
getServerSession in interface javax.jms.ServerSessionPooljavax.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 | ||||||||||