01: /*
02: * @(#)XAQueueConnection.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>XAQueueConnection</CODE> provides the same create options as
15: * <CODE>QueueConnection</CODE> (optional).
16: * The only difference is that an <CODE>XAConnection</CODE> is by definition
17: * transacted.
18: *
19: *<P>The <CODE>XAQueueConnection</CODE> interface is optional. JMS providers
20: * are not required to support this interface. This interface is for
21: * use by JMS providers to support transactional environments.
22: * Client programs are strongly encouraged to use the transactional support
23: * available in their environment, rather than use these XA
24: * interfaces directly.
25: *
26: * @version 1.1 February 2 - 2002
27: * @author Mark Hapner
28: * @author Rich Burridge
29: * @author Kate Stout
30: *
31: * @see javax.jms.XAConnection
32: */
33:
34: public interface XAQueueConnection extends XAConnection,
35: QueueConnection {
36:
37: /** Creates an <CODE>XAQueueSession</CODE> object.
38: *
39: * @return a newly created <CODE>XAQueueSession</CODE>
40: *
41: * @exception JMSException if the <CODE>XAQueueConnection</CODE> object
42: * fails to create an XA queue session due to some
43: * internal error.
44: */
45:
46: XAQueueSession createXAQueueSession() throws JMSException;
47:
48: /** Creates an <CODE>XAQueueSession</CODE> object.
49: *
50: * @param transacted usage undefined
51: * @param acknowledgeMode usage undefined
52: *
53: * @return a newly created <CODE>XAQueueSession</CODE>
54: *
55: * @exception JMSException if the <CODE>XAQueueConnection</CODE> object
56: * fails to create an XA queue session due to some
57: * internal error.
58: */
59: QueueSession createQueueSession(boolean transacted,
60: int acknowledgeMode) throws JMSException;
61: }
|