org.ow2.jonas.resource.internal.cm.jta
Class JResourceManagerEvent

java.lang.Object
  extended by org.ow2.jonas.resource.internal.cm.jta.JResourceManagerEvent
All Implemented Interfaces:
Enlistable

public class JResourceManagerEvent
extends Object
implements Enlistable

This class implements Enlistable. 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 delistConnection(Transaction tx)
          Used when going out of a Stateful beans
 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 Enlistable
Parameters:
tx - TransactionConnection
Throws:
SystemException - if an Exception occurs

delistConnection

public void delistConnection(Transaction tx)
                      throws SystemException
Used when going out of a Stateful beans

Specified by:
delistConnection in interface Enlistable
Parameters:
tx - the transaction that has begun
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 © 2010 OW2 Consortium. All Rights Reserved.