org.objectweb.jonas.resource.MySynchro Class Reference

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MySynchro (ConnectionManagerImpl pCm, MCInfo pMci)
void afterCompletion (int status)
void beforeCompletion ()

Detailed Description

This class is an implementation of the Synchronization interface, used by a ConnectionManagerImpl instance. The aim of this class is to close a ManagedConnection when a transaction finishes. This class is necessary when the commit or the rollback action is after a connection close.

Author:
sebastien.chassande@inrialpes.fr

Eric.Hardesty@bull.com

Definition at line 45 of file MySynchro.java.


Constructor & Destructor Documentation

org.objectweb.jonas.resource.MySynchro.MySynchro ConnectionManagerImpl  pCm,
MCInfo  pMci
 

Constructor for the MySynchro object

Parameters:
pCm ConnectionManager object
pMci ManagedConnection information object

Definition at line 65 of file MySynchro.java.

References org.objectweb.jonas.resource.MCInfo.synchro, and org.objectweb.jonas.resource.ConnectionManagerImpl.synchros.


Member Function Documentation

void org.objectweb.jonas.resource.MySynchro.afterCompletion int  status  ) 
 

This method is called by the transaction manager after the transaction is committed or rolled back. Release the mci from the pool

Parameters:
status The transaction flag

Definition at line 79 of file MySynchro.java.

References org.objectweb.jonas.resource.MCInfo.ctx, org.objectweb.jonas.resource.ConnectionManagerImpl.getState(), org.objectweb.jonas.resource.MCInfo.mc, org.objectweb.jonas.resource.ConnectionManagerImpl.mcs, org.objectweb.jonas.resource.ConnectionManagerImpl.poolMCs, org.objectweb.jonas.resource.ConnectionManagerImpl.poolTrace, org.objectweb.jonas.resource.pool.api.Pool.releaseResource(), org.objectweb.jonas.resource.MCInfo.stmtHash, org.objectweb.jonas.resource.MCInfo.synchro, org.objectweb.jonas.resource.ConnectionManagerImpl.synchros, org.objectweb.jonas.resource.ConnectionManagerImpl.trace, org.objectweb.jonas.resource.MCInfo.usedCs, and org.objectweb.jonas.resource.ConnectionManagerImpl.usedMCs.

Here is the call graph for this function:

void org.objectweb.jonas.resource.MySynchro.beforeCompletion  ) 
 

This method is called by the transaction manager prior to the start of the transaction completion process.

Definition at line 137 of file MySynchro.java.


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