站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

ServerSessionPoolFactory (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.jms.asf
Interface ServerSessionPoolFactory

All Known Implementing Classes:
StdServerSessionPoolFactory

public interface ServerSessionPoolFactory

Defines the model for creating ServerSessionPoolFactory objects.

Created: Wed Nov 29 15:55:21 2000

Version:
$Revision: 1.9 $
Author:
Peter Antman ., Hiram Chirino .

Method Summary
 String getName()
          Get the name of the factory.
 javax.jms.ServerSessionPool getServerSessionPool(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

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

Parameters:
name - The name of the factory.

getName

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

Returns:
The name of the factory.

setXidFactory

public 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

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

Returns:
a XidFactoryMBean value

getServerSessionPool

public javax.jms.ServerSessionPool getServerSessionPool(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:
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.