Package jakarta.jms
Interface XAConnection
- 
- All Superinterfaces:
- AutoCloseable,- Connection
 - All Known Subinterfaces:
- XAQueueConnection,- XATopicConnection
 
 public interface XAConnection extends Connection TheXAConnectioninterface extends the capability ofConnectionby providing anXASession(optional).The XAConnectioninterface 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
- Version:
- Jakarta Messaging 2.0
- See Also:
- XAQueueConnection,- XATopicConnection
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description SessioncreateSession(boolean transacted, int acknowledgeMode)Creates anSessionobject.XASessioncreateXASession()Creates anXASessionobject.- 
Methods inherited from interface jakarta.jms.Connectionclose, createConnectionConsumer, createDurableConnectionConsumer, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 
- 
 
- 
- 
- 
Method Detail- 
createXASessionXASession createXASession() throws JMSException Creates anXASessionobject.- Returns:
- a newly created XASession
- Throws:
- JMSException- if the- XAConnectionobject fails to create an- XASessiondue to some internal error.
- Since:
- JMS 1.1
 
 - 
createSessionSession createSession(boolean transacted, int acknowledgeMode) throws JMSException Creates anSessionobject.- Specified by:
- createSessionin interface- Connection
- Parameters:
- transacted- usage undefined
- acknowledgeMode- usage undefined
- Returns:
- a newly created Session
- Throws:
- JMSException- if the- XAConnectionobject fails to create a- Sessiondue to some internal error.
- Since:
- JMS 1.1
- See Also:
- Session.AUTO_ACKNOWLEDGE,- Session.CLIENT_ACKNOWLEDGE,- Session.DUPS_OK_ACKNOWLEDGE,- Connection.createSession(int),- Connection.createSession()
 
 
- 
 
-