org.jboss.jms.asf
Class StdServerSessionPoolFactory

java.lang.Object
  extended byorg.jboss.jms.asf.StdServerSessionPoolFactory
All Implemented Interfaces:
java.io.Serializable, ServerSessionPoolFactory (src)

public class StdServerSessionPoolFactory
extends java.lang.Object
implements ServerSessionPoolFactory (src) , java.io.Serializable

An implementation of ServerSessionPoolFactory.

Created: Fri Dec 22 09:47:41 2000

See Also:
Serialized Form

Constructor Summary
StdServerSessionPoolFactory()
           
 
Method Summary
 java.lang.String getName()
          Get the name of the factory.
 ServerSessionPool (src) getServerSessionPool(Destination (src)  destination, Connection (src)  con, int minSession, int maxSession, long keepAlive, boolean isTransacted, int ack, boolean useLocalTX, MessageListener (src)  listener)
          Create a new ServerSessionPool.
 XidFactoryMBean getXidFactory()
          The getXidFactory method returns the XidFactory that server sessions will use to get xids..
 void setName(java.lang.String name)
          Set the name of the factory.
 void setXidFactory(XidFactoryMBean xidFactory)
          The setXidFactory method supplies the XidFactory that server sessions will use to get Xids to control local transactions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdServerSessionPoolFactory

public StdServerSessionPoolFactory()
Method Detail

setName

public void setName(java.lang.String name)
Description copied from interface: ServerSessionPoolFactory (src)
Set the name of the factory.

Specified by:
setName in interface ServerSessionPoolFactory (src)
Parameters:
name - The name of the factory.

getName

public java.lang.String getName()
Description copied from interface: ServerSessionPoolFactory (src)
Get the name of the factory.

Specified by:
getName in interface ServerSessionPoolFactory (src)
Returns:
The name of the factory.

setXidFactory

public void setXidFactory(XidFactoryMBean xidFactory)
Description copied from interface: ServerSessionPoolFactory (src)
The setXidFactory method supplies the XidFactory that server sessions will use to get Xids to control local transactions.

Specified by:
setXidFactory in interface ServerSessionPoolFactory (src)
Parameters:
xidFactory - a XidFactoryMBean value

getXidFactory

public XidFactoryMBean getXidFactory()
Description copied from interface: ServerSessionPoolFactory (src)
The getXidFactory method returns the XidFactory that server sessions will use to get xids..

Specified by:
getXidFactory in interface ServerSessionPoolFactory (src)
Returns:
a XidFactoryMBean value

getServerSessionPool

public ServerSessionPool (src)  getServerSessionPool(Destination (src)  destination,
                                              Connection (src)  con,
                                              int minSession,
                                              int maxSession,
                                              long keepAlive,
                                              boolean isTransacted,
                                              int ack,
                                              boolean useLocalTX,
                                              MessageListener (src)  listener)
                                       throws JMSException (src) 
Description copied from interface: ServerSessionPoolFactory (src)
Create a new ServerSessionPool.

Specified by:
getServerSessionPool in interface ServerSessionPoolFactory (src)
Parameters:
destination - the destination
con - the jms connection
minSession - the minimum number of sessions
maxSession - the maximum number of sessions
keepAlive - the time to keep sessions alive
isTransacted - whether the pool is transacted
ack - the acknowledegement method
listener - the listener
useLocalTX - whether to use local transactions
Returns:
A new pool.
Throws:
JMSException (src) - for any error