01: /*
02: * @(#)XATopicSession.java 1.12 02/04/09
03: *
04: * Copyright 1997-2002 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * SUN PROPRIETARY/CONFIDENTIAL.
07: * This software is the proprietary information of Sun Microsystems, Inc.
08: * Use is subject to license terms.
09: *
10: */
11:
12: package javax.jms;
13:
14: /** An <CODE>XATopicSession</CODE> provides a regular <CODE>TopicSession</CODE>.
15: * which can be used to create <CODE>TopicSubscriber</CODE> and
16: * <CODE>TopicPublisher</CODE> objects (optional).
17: *
18: * <P>The <CODE>XATopicSession</CODE> interface is optional. JMS providers
19: * are not required to support this interface. This interface is for
20: * use by JMS providers to support transactional environments.
21: * Client programs are strongly encouraged to use the transactional support
22: * available in their environment, rather than using these XA
23: * interfaces directly.
24: *
25: * @version 1.1 February 2, 2002
26: * @author Mark Hapner
27: * @author Rich Burridge
28: * @author Kate Stout
29: *
30: * @see javax.jms.XASession
31: * @see javax.jms.TopicSession
32: */
33:
34: public interface XATopicSession extends XASession {
35:
36: /** Gets the topic session associated with this <CODE>XATopicSession</CODE>.
37: *
38: * @return the topic session object
39: *
40: * @exception JMSException if an internal error occurs.
41: */
42:
43: TopicSession getTopicSession() throws JMSException;
44: }
|