|
Préférences
Moteurs de recherche
|
||||||||||||||||
| JavaTM Platform, Enterprise Edition, v 5.0
javax.jms
|
|||||||||||||||||
| Field Summary |
|---|
| Fields inherited from interface javax.jms.Session |
|---|
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED |
| Method Summary | |
|---|---|
void |
commit()
Throws a TransactionInProgressException, since it should
not be called for an XASession object. |
Session |
getSession()
Gets the session associated with this XASession. |
boolean |
getTransacted()
Indicates whether the session is in transacted mode. |
XAResource |
getXAResource()
Returns an XA resource to the caller. |
void |
rollback()
Throws a TransactionInProgressException, since it should
not be called for an XASession object. |
| Method Detail |
|---|
Session getSession() throws JMSException
XASession.
JMSException - if an internal error occurs.XAResource getXAResource()
boolean getTransacted()
throws JMSException
getTransacted in interface SessionJMSException - if the JMS provider fails to return the
transaction mode due to some internal error.
void commit()
throws JMSException
TransactionInProgressException, since it should
not be called for an XASession object.
TransactionInProgressException - if the method is called on
an XASession.
JMSException - if the JMS provider fails to commit the
transaction due to some internal error.
TransactionRolledBackException - if the transaction
is rolled back due to some internal error
during commit.
IllegalStateException - if the method is not called by a
transacted session.
void rollback()
throws JMSException
TransactionInProgressException, since it should
not be called for an XASession object.
TransactionInProgressException - if the method is called on
an XASession.
JMSException - if the JMS provider fails to roll back the
transaction due to some internal error.
IllegalStateException - if the method is not called by a
transacted session.