org.springframework.jms.connection
Class JmsTransactionObject
java.lang.Object
org.springframework.jms.connection.JmsTransactionObject
- All Implemented Interfaces:
- SmartTransactionObject
- public class JmsTransactionObject
- extends Object
- implements SmartTransactionObject
JMS transaction object, representing a ConnectionHolder.
Used as transaction object by JmsTransactionManager.
Note: This is an SPI class, not intended to be used by applications.
- Since:
- 1.1
- Author:
- Juergen Hoeller
- See Also:
JmsTransactionManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JmsTransactionObject
public JmsTransactionObject()
setConnectionHolder
protected void setConnectionHolder(ConnectionHolder connectionHolder)
getConnectionHolder
public ConnectionHolder getConnectionHolder()
isRollbackOnly
public boolean isRollbackOnly()
- Description copied from interface:
SmartTransactionObject
- Return whether the transaction is internally marked as rollback-only.
Can, for example, check the JTA UserTransaction.
- Specified by:
isRollbackOnly
in interface SmartTransactionObject
- See Also:
UserTransaction.getStatus()
,
Status.STATUS_MARKED_ROLLBACK
Copyright (C) 2003-2004 The Spring Framework Project.