org.jboss.jms.asf
Interface ServerSessionPoolFactory

All Known Implementing Classes:
StdServerSessionPoolFactory (src)

public interface ServerSessionPoolFactory

Defines the model for creating ServerSessionPoolFactory objects.

Created: Wed Nov 29 15:55:21 2000


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.
 

Method Detail

setName

public void setName(java.lang.String name)
Set the name of the factory.

Parameters:
name - The name of the factory.

getName

public java.lang.String getName()
Get the name of the factory.

Returns:
The name of the factory.

setXidFactory

public void setXidFactory(XidFactoryMBean xidFactory)
The setXidFactory method supplies the XidFactory that server sessions will use to get Xids to control local transactions.

Parameters:
xidFactory - a XidFactoryMBean value

getXidFactory

public XidFactoryMBean getXidFactory()
The getXidFactory method returns the XidFactory that server sessions will use to get xids..

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) 
Create a new ServerSessionPool.

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