ServerSessionPool (Java EE 5)

Java EE API


javax.jms Interface ServerSessionPool


public interface ServerSessionPool


ServerSessionPool 对象是由应用服务器实现的对象,它提供用于处理 ConnectionConsumer 消息的 ServerSession 对象的池(可选)。

该对象唯一的方法是 getServerSession。JMS API 没有架构实现该池的方式。它可以是 ServerSession 对象的静态池,它也可能使用复杂算法根据需要动态创建 ServerSession 对象。

如果 ServerSessionPool 中没有 ServerSession 对象,则 getServerSession 调用可能会阻塞。如果 ConnectionConsumer 被阻塞,则在最终返回 ServerSession 之前,它不会传送新消息。

英文文档:

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.

Version:
1.0 - 9 March 1998
Author:
Mark Hapner, Rich Burridge
See Also:
ServerSession

Method Summary
 ServerSession
 

Method Detail

public ServerSession getServerSession() throws JMSException
返回池中的服务器会话。
return 池中的服务器会话
ThrowsJMSException: 如果应用服务器无法返回其服务器会话池中的 ServerSession
英文文档:

getServerSession

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

Returns:
a server session from the pool
Throws:
JMSException - if an application server fails to return a ServerSession out of its server session pool.


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!