Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » jms » asf » [javadoc | source]
org.jboss.jms.asf
public class: StdServerSessionPool [javadoc | source]
java.lang.Object
   org.jboss.jms.asf.StdServerSessionPool

All Implemented Interfaces:
    javax.jms.ServerSessionPool

Implementation of ServerSessionPool.

Created: Thu Dec 7 17:02:03 2000

Constructor:
 public StdServerSessionPool(Connection con,
    boolean transacted,
    int ack,
    boolean useLocalTX,
    MessageListener listener,
    int maxSession,
    XidFactoryMBean xidFactory) throws JMSException 
    Construct a StdServerSessionPool using the default pool size.
    Parameters:
    con - connection to get sessions from
    transacted - transaction mode when not XA (
    ack - ackmode when not XA
    listener - the listener the sessions will call
    maxSession - maximum number of sessions in the pool
    isuseLocalTX - Description of Parameter
    Throws:
    JMSException - Description of Exception
    exception: JMSException - Description of Exception
Method from org.jboss.jms.asf.StdServerSessionPool Summary:
clear,   getExecutor,   getServerSession,   isTransacted,   recycle
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.jms.asf.StdServerSessionPool Detail:
 public  void clear() 
    Clear the pool, clear out both threads and ServerSessions, connection.stop() should be run before this method.
 Executor getExecutor() 
    Get the executor we are using.
 public ServerSession getServerSession() throws JMSException 
    Get a server session.
 boolean isTransacted() 
    Returns true if this server session is transacted.
  void recycle(StdServerSession session) 
    Recycle a server session.