org.jboss.jms.asf
Class StdServerSessionPool

java.lang.Object
  extended byorg.jboss.jms.asf.StdServerSessionPool
All Implemented Interfaces:
ServerSessionPool (src)

public class StdServerSessionPool
extends java.lang.Object
implements ServerSessionPool (src)

Implementation of ServerSessionPool.

Created: Thu Dec 7 17:02:03 2000


Constructor Summary
StdServerSessionPool(Destination (src)  destination, Connection (src)  con, boolean transacted, int ack, boolean useLocalTX, MessageListener (src)  listener, int minSession, int maxSession, long keepAlive, 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.
 ServerSession (src) 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

StdServerSessionPool

public StdServerSessionPool(Destination (src)  destination,
                            Connection (src)  con,
                            boolean transacted,
                            int ack,
                            boolean useLocalTX,
                            MessageListener (src)  listener,
                            int minSession,
                            int maxSession,
                            long keepAlive,
                            XidFactoryMBean xidFactory)
                     throws JMSException (src) 
Construct a StdServerSessionPool using the default pool size.

Parameters:
destination - the destination
con - connection to get sessions from
transacted - transaction mode when not XA (
ack - ackmode when not XA
listener - the listener the sessions will call
minSession - minumum number of sessions in the pool
maxSession - maximum number of sessions in the pool
keepAlive - the time to keep sessions alive
xidFactory - Description of Parameter
Throws:
JMSException (src) - Description of Exception
Method Detail

getServerSession

public ServerSession (src)  getServerSession()
                               throws JMSException (src) 
Get a server session.

Specified by:
getServerSession in interface ServerSessionPool (src)
Returns:
A server session.
Throws:
JMSException (src) - Failed to get a server session.

clear

public void clear()
Clear the pool, clear out both threads and ServerSessions, connection.stop() should be run before this method.