XATopicSession (Java EE 5)

Java EE API


javax.jms Interface XATopicSession

All Superinterfaces:
Runnable, Session, XASession

public interface XATopicSession
extends XASession

Implements: XASession

XATopicSession 提供常规 TopicSession,可用于创建 TopicSubscriberTopicPublisher 对象(可选)。

XATopicSession 接口是可选的。JMS 提供者不需要支持此接口。此接口供 JMS 提供者使用,以支持事务环境。强烈建议客户端程序使用其环境中可用的事务支持,而不是直接使用这些 XA 接口。

英文文档:

An XATopicSession provides a regular TopicSession. which can be used to create TopicSubscriber and TopicPublisher objects (optional).

The XATopicSession interface is optional. JMS providers are not required to support this interface. This interface is for use by JMS providers to support transactional environments. Client programs are strongly encouraged to use the transactional support available in their environment, rather than using these XA interfaces directly.

Version:
1.1 February 2, 2002
Author:
Mark Hapner, Rich Burridge, Kate Stout
See Also:
XASession, TopicSession

Field Summary
 
Fields inherited from interface javax.jms.Session
 
Method Summary
 TopicSession
 
Methods inherited from interface javax.jms.XASession
 
Methods inherited from interface javax.jms.Session
 

Method Detail

public TopicSession getTopicSession() throws JMSException
获取与此 XATopicSession 关联的主题会话。
return 主题会话对象
ThrowsJMSException: 如果发生内部错误。
英文文档:

getTopicSession

TopicSession getTopicSession()
                             throws JMSException
Gets the topic session associated with this XATopicSession.

Returns:
the topic session object
Throws:
JMSException - if an internal error occurs.


Submit a bug or feature

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

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

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