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 Summary
All 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.Connection
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
-
-
-
-
Method Detail
-
createXASession
XASession createXASession() throws JMSException
Creates anXASessionobject.- Returns:
- a newly created
XASession - Throws:
JMSException- if theXAConnectionobject fails to create anXASessiondue to some internal error.- Since:
- JMS 1.1
-
createSession
Session createSession(boolean transacted, int acknowledgeMode) throws JMSException
Creates anSessionobject.- Specified by:
createSessionin interfaceConnection- Parameters:
transacted- usage undefinedacknowledgeMode- usage undefined- Returns:
- a newly created
Session - Throws:
JMSException- if theXAConnectionobject fails to create aSessiondue 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()
-
-