org.objectweb.jonas.resource.RMEImpl Class Reference

Collaboration diagram for org.objectweb.jonas.resource.RMEImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RMEImpl (MCInfo mci, Logger trace)
boolean equals (Object o)
void enlistConnection (Transaction tx) throws SystemException

Protected Attributes

boolean isValid = false

Detailed Description

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

Definition at line 44 of file RMEImpl.java.


Constructor & Destructor Documentation

org.objectweb.jonas.resource.RMEImpl.RMEImpl MCInfo  mci,
Logger  trace
 

This constructor permits to specify the MCInfp corresponding to the ManagedConnection (the physical connection).

Parameters:
mci MCInfo
trace Logger

Definition at line 68 of file RMEImpl.java.


Member Function Documentation

void org.objectweb.jonas.resource.RMEImpl.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.

Parameters:
tx TransactionConnection
Exceptions:
SystemException if an Exception occurs

Definition at line 90 of file RMEImpl.java.

References org.objectweb.jonas.resource.MCInfo.getXAResource().

Here is the call graph for this function:

boolean org.objectweb.jonas.resource.RMEImpl.equals Object  o  ) 
 

Check if equals

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

Definition at line 79 of file RMEImpl.java.


Member Data Documentation

boolean org.objectweb.jonas.resource.RMEImpl.isValid = false [protected]
 

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.

Definition at line 59 of file RMEImpl.java.

Referenced by org.objectweb.jonas.resource.ConnectionManagerImpl.allocateConnection(), org.objectweb.jonas.resource.ConnectionManagerImpl.cleanResourceAdapter(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionClosed(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionErrorOccurred(), org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionCommitted(), and org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionRolledback().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:33 2005 for JOnAS by  doxygen 1.3.9.1