org.apache.commons.messenger
Interface XACapable

All Known Implementing Classes:
XACapableAdapter, XAMessenger

public interface XACapable

XACapable is an object (typically a MessageListener in this context) which can be part of an XA transaction. This just means that this object has a way of providing XA resources.

Version:
$Revision: 155459 $
Author:
James Strachan

Method Summary
 void delistResources(Transaction transaction, int flag)
          This method is called to delist any XA resources the given object has previously enlisted to this XA transaction.
 void enlistResources(Transaction transaction)
          This method is called to enlist any XA resources the given object has to be part of the XA transaction.
 

Method Detail

enlistResources

void enlistResources(Transaction transaction)
                     throws Exception
This method is called to enlist any XA resources the given object has to be part of the XA transaction.

Parameters:
transaction - the transaction to enlist to
Throws:
Exception

delistResources

void delistResources(Transaction transaction,
                     int flag)
                     throws Exception
This method is called to delist any XA resources the given object has previously enlisted to this XA transaction.

Parameters:
transaction - the transaction to delist resources from
flag - is the flag used by JTA when delisting resources. It is either XAResource.TMSUCCESS, XAResource.TMSUSPEND, or XAResource.TMFAIL
Throws:
Exception


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.