org.jboss.jms.asf
Interface ServerSessionPoolFactory

All Known Implementing Classes:
StdServerSessionPoolFactory

public interface ServerSessionPoolFactory

Defines the model for creating ServerSessionPoolFactory objects.

Version:
$Revision: 57209 $
Author:
Peter Antman ., Hiram Chirino ., Jason Dillon, Adrian Brock

Method Summary
 String getName()
          Get the name of the factory.
 javax.jms.ServerSessionPool getServerSessionPool(javax.jms.Destination destination, javax.jms.Connection con, int minSession, int maxSession, long keepAlive, boolean isTransacted, int ack, boolean useLocalTX, javax.jms.MessageListener listener)
          Create a new ServerSessionPool.
 org.jboss.tm.XidFactoryMBean getXidFactory()
          The getXidFactory method returns the XidFactory that server sessions will use to get xids..
 void setName(String name)
          Set the name of the factory.
 void setXidFactory(org.jboss.tm.XidFactoryMBean xidFactory)
          The setXidFactory method supplies the XidFactory that server sessions will use to get Xids to control local transactions.
 

Method Detail

setName

void setName(String name)
Set the name of the factory.

Parameters:
name - The name of the factory.

getName

String getName()
Get the name of the factory.

Returns:
The name of the factory.

setXidFactory

void setXidFactory(org.jboss.tm.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

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

Returns:
a XidFactoryMBean value

getServerSessionPool

javax.jms.ServerSessionPool getServerSessionPool(javax.jms.Destination destination,
                                                 javax.jms.Connection con,
                                                 int minSession,
                                                 int maxSession,
                                                 long keepAlive,
                                                 boolean isTransacted,
                                                 int ack,
                                                 boolean useLocalTX,
                                                 javax.jms.MessageListener listener)
                                                 throws javax.jms.JMSException
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:
javax.jms.JMSException - for any error


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.