Package javax.jms
Interface XAQueueConnection
- 
- All Superinterfaces:
- java.lang.AutoCloseable,- Connection,- QueueConnection,- XAConnection
 
 public interface XAQueueConnection extends XAConnection, QueueConnection AnXAQueueConnectionprovides the same create options asQueueConnection(optional). The only difference is that anXAConnectionis by definition transacted.The XAQueueConnectioninterface is optional. Jakarta Messaging providers are not required to support this interface. This interface is for use by Jakarta Messaging 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.- Since:
- JMS 1.0
- See Also:
- XAConnection
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description QueueSessioncreateQueueSession(boolean transacted, int acknowledgeMode)Creates aQueueSessionobject.XAQueueSessioncreateXAQueueSession()Creates anXAQueueSessionobject.- 
Methods inherited from interface javax.jms.Connectionclose, createConnectionConsumer, createDurableConnectionConsumer, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 - 
Methods inherited from interface javax.jms.QueueConnectioncreateConnectionConsumer
 - 
Methods inherited from interface javax.jms.XAConnectioncreateSession, createXASession
 
- 
 
- 
- 
- 
Method Detail- 
createXAQueueSessionXAQueueSession createXAQueueSession() throws JMSException Creates anXAQueueSessionobject.- Returns:
- a newly created XAQueueSession
- Throws:
- JMSException- if the- XAQueueConnectionobject fails to create an- XAQueueSessiondue to some internal error.
 
 - 
createQueueSessionQueueSession createQueueSession(boolean transacted, int acknowledgeMode) throws JMSException Creates aQueueSessionobject.- Specified by:
- createQueueSessionin interface- QueueConnection
- Parameters:
- transacted- usage undefined
- acknowledgeMode- usage undefined
- Returns:
- a newly created QueueSession
- Throws:
- JMSException- if the- XAQueueConnectionobject fails to create a- QueueSessiondue to some internal error.
- See Also:
- Session.AUTO_ACKNOWLEDGE,- Session.CLIENT_ACKNOWLEDGE,- Session.DUPS_OK_ACKNOWLEDGE
 
 
- 
 
-