ServerSessionPool (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.jms Interface ServerSessionPool


public interface ServerSessionPool

A ServerSessionPool object is an object implemented by an application server to provide a pool of ServerSession objects for processing the messages of a ConnectionConsumer (optional).

Its only method is getServerSession. The JMS API does not architect how the pool is implemented. It could be a static pool of ServerSession objects, or it could use a sophisticated algorithm to dynamically create ServerSession objects as needed.

If the ServerSessionPool is out of ServerSession objects, the getServerSession call may block. If a ConnectionConsumer is blocked, it cannot deliver new messages until a ServerSession is eventually returned.

版本:
1.0 - 9 March 1998
作者:
Mark Hapner, Rich Burridge
另请参见:
ServerSession

方法摘要
 ServerSession getServerSession()
          Return a server session from the pool.
 

方法详细信息

getServerSession

ServerSession getServerSession()
                               throws JMSException
Return a server session from the pool.

返回:
a server session from the pool
抛出异常:
JMSException - if an application server fails to return a ServerSession out of its server session pool.

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.