XAQueueSession (Java EE 5)

Java EE API


javax.jms Interface XAQueueSession

All Superinterfaces:
Runnable, Session, XASession

public interface XAQueueSession
extends XASession

Implements: XASession

XAQueueSession 提供常规 QueueSession,可用于创建 QueueReceiverQueueSenderQueueBrowser 对象(可选)。

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

英文文档:

An XAQueueSession provides a regular QueueSession, which can be used to create QueueReceiver, QueueSender, and QueueBrowser objects (optional).

The XAQueueSession 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 use these XA interfaces directly.

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

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

Method Detail

public QueueSession getQueueSession() throws JMSException
获取与此 XAQueueSession 关联的队列会话。
return 队列会话对象
ThrowsJMSException: 如果发生内部错误。
英文文档:

getQueueSession

QueueSession getQueueSession()
                             throws JMSException
Gets the queue session associated with this XAQueueSession.

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