org.mule.providers.jms
Class JmsTransaction

java.lang.Object
  extended byorg.mule.transaction.AbstractTransaction
      extended byorg.mule.transaction.AbstractSingleResourceTransaction
          extended byorg.mule.providers.jms.JmsTransaction
All Implemented Interfaces:
UMOTransaction

public class JmsTransaction
extends AbstractSingleResourceTransaction

JmsTransaction is a wrapper for a Jms local transaction. This object holds the jms session and controls the when the transaction committed or rolled back.

Version:
$Revision: 1.2 $
Author:
Ross Mason, Guillaume Nodet

Field Summary
 
Fields inherited from class org.mule.transaction.AbstractSingleResourceTransaction
committed, key, resource, rollbackOnly, rolledBack, started
 
Fields inherited from class org.mule.transaction.AbstractTransaction
logger
 
Fields inherited from interface org.mule.umo.UMOTransaction
STATUS_ACTIVE, STATUS_COMMITTED, STATUS_COMMITTING, STATUS_MARKED_ROLLBACK, STATUS_NO_TRANSACTION, STATUS_PREPARED, STATUS_PREPARING, STATUS_ROLLEDBACK, STATUS_ROLLING_BACK, STATUS_UNKNOWN
 
Constructor Summary
JmsTransaction()
           
 
Method Summary
 void bindResource(java.lang.Object key, java.lang.Object resource)
           
protected  void doBegin()
          Really begin the transaction.
protected  void doCommit()
          Commit the transaction on the underlying resource
protected  void doRollback()
          Rollback the transaction on the underlying resource
 
Methods inherited from class org.mule.transaction.AbstractSingleResourceTransaction
begin, commit, getResource, getStatus, hasResource, rollback, setRollbackOnly
 
Methods inherited from class org.mule.transaction.AbstractTransaction
isBegun, isCommitted, isRollbackOnly, isRolledBack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsTransaction

public JmsTransaction()
Method Detail

bindResource

public void bindResource(java.lang.Object key,
                         java.lang.Object resource)
                  throws UMOTransactionException
Specified by:
bindResource in interface UMOTransaction
Overrides:
bindResource in class AbstractSingleResourceTransaction
Throws:
UMOTransactionException

doBegin

protected void doBegin()
                throws UMOTransactionException
Description copied from class: AbstractSingleResourceTransaction
Really begin the transaction. Note that resources are enlisted yet.

Specified by:
doBegin in class AbstractSingleResourceTransaction
Throws:
UMOTransactionException

doCommit

protected void doCommit()
                 throws UMOTransactionException
Description copied from class: AbstractSingleResourceTransaction
Commit the transaction on the underlying resource

Specified by:
doCommit in class AbstractSingleResourceTransaction
Throws:
UMOTransactionException

doRollback

protected void doRollback()
                   throws UMOTransactionException
Description copied from class: AbstractSingleResourceTransaction
Rollback the transaction on the underlying resource

Specified by:
doRollback in class AbstractSingleResourceTransaction
Throws:
UMOTransactionException


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.