01: /*
02: * @(#)XATopicConnection.java 1.17 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>XATopicConnection</CODE> provides the same create options as
15: * <CODE>TopicConnection</CODE> (optional). The Topic connections created are
16: * transactional.
17: *
18: * <P>The <CODE>XATopicConnection</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 use 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.XAConnection
31: */
32:
33: public interface XATopicConnection extends XAConnection,
34: TopicConnection {
35:
36: /** Creates an <CODE>XATopicSession</CODE> object.
37: *
38: * @return a newly created XA topic session
39: *
40: * @exception JMSException if the <CODE>XATopicConnection</CODE> object
41: * fails to create an XA topic session due to some
42: * internal error.
43: */
44:
45: XATopicSession createXATopicSession() throws JMSException;
46:
47: /** Creates an <CODE>XATopicSession</CODE> object.
48: *
49: * @param transacted usage undefined
50: * @param acknowledgeMode usage undefined
51: *
52: * @return a newly created XA topic session
53: *
54: * @exception JMSException if the <CODE>XATopicConnection</CODE> object
55: * fails to create an XA topic session due to some
56: * internal error.
57: */
58:
59: TopicSession createTopicSession(boolean transacted,
60: int acknowledgeMode) throws JMSException;
61: }
|