org.objectweb.jonas.resource
Class RMEImpl

java.lang.Object
  extended byorg.objectweb.jonas.resource.RMEImpl
All Implemented Interfaces:
org.objectweb.transaction.jta.ResourceManagerEvent

public class RMEImpl
extends java.lang.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 MCInfo instance.

Author:
sebastien.chassande@inrialpes.fr

Field Summary
protected  boolean isValid
          Set if the RME is valid to call enlist Resource Issue with JOTM and one thread calling ConnectionOpened, but a different thread calling Closed or Error and not enough information in JOTM to keep information straight.
 
Constructor Summary
RMEImpl(MCInfo 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 delistConnection(javax.transaction.Transaction tx)
          Added for Stateful beans (See JStatefulSwitch.delistConnections)
 void enlistConnection(javax.transaction.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(java.lang.Object o)
          Check if equals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isValid

protected boolean isValid
Set if the RME is valid to call enlist Resource Issue with JOTM and one thread calling ConnectionOpened, but a different thread calling Closed or Error and not enough information in JOTM to keep information straight.

Constructor Detail

RMEImpl

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

Parameters:
mci - MCInfo
trace - Logger
Method Detail

equals

public boolean equals(java.lang.Object o)
Check if equals

Parameters:
o - Object to test equality
Returns:
boolean if RMEImpl objets are equal

enlistConnection

public void enlistConnection(javax.transaction.Transaction tx)
                      throws javax.transaction.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:
javax.transaction.SystemException - if an Exception occurs

delistConnection

public void delistConnection(javax.transaction.Transaction tx)
                      throws javax.transaction.SystemException
Added for Stateful beans (See JStatefulSwitch.delistConnections)

Throws:
javax.transaction.SystemException