org.objectweb.jonas.resource.cm.jta
Class JResourceManagerEvent

java.lang.Object
  extended by org.objectweb.jonas.resource.cm.jta.JResourceManagerEvent
All Implemented Interfaces:
org.objectweb.transaction.jta.ResourceManagerEvent

public class JResourceManagerEvent
extends Object
implements org.objectweb.transaction.jta.ResourceManagerEvent

This class implements ResourceManagerEvent. An instance of this object is also an event transmited by the Resource adapter manager to the user transaction. This event is linked to a ManagedConnection, more exatcly this implementation is linked to ManagedConnectionInfo instance.

Author:
sebastien.chassande@inrialpes.fr

Constructor Summary
JResourceManagerEvent(ManagedConnectionInfo mci, org.objectweb.util.monolog.api.Logger trace)
          This constructor permits to specify the MCInfp corresponding to the ManagedConnection (the physical connection).
 
Method Summary
 void enlistConnection(Transaction tx)
          This method is in charge of the enlisting of the managedConnection linked to this instance, in the transaction specified in parameter.
 boolean equals(Object o)
          Check if equals
 boolean isValid()
           
 void setValid(boolean isValid)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JResourceManagerEvent

public JResourceManagerEvent(ManagedConnectionInfo mci,
                             org.objectweb.util.monolog.api.Logger trace)
This constructor permits to specify the MCInfp corresponding to the ManagedConnection (the physical connection).

Parameters:
mci - ManagedConnectionInfo
trace - Logger
Method Detail

equals

public boolean equals(Object o)
Check if equals

Overrides:
equals in class Object
Parameters:
o - Object to test equality
Returns:
boolean if JResourceManagerEvent objets are equal

enlistConnection

public void enlistConnection(Transaction tx)
                      throws SystemException
This method is in charge of the enlisting of the managedConnection linked to this instance, in the transaction specified in parameter.

Specified by:
enlistConnection in interface org.objectweb.transaction.jta.ResourceManagerEvent
Parameters:
tx - TransactionConnection
Throws:
SystemException - if an Exception occurs

isValid

public boolean isValid()
Returns:
the isValid

setValid

public void setValid(boolean isValid)
Parameters:
isValid - the isValid to set


Copyright © 2007 OW2 Consortium. All Rights Reserved.