org.objectweb.jotm.btp.tm
Class SOAPResource

java.lang.Object
  |
  +--org.objectweb.jotm.btp.tm.SOAPResource
All Implemented Interfaces:
Remote, org.objectweb.jonas_tm.Resource

public class SOAPResource
extends Object
implements org.objectweb.jonas_tm.Resource


Field Summary
 
Fields inherited from interface org.objectweb.jonas_tm.Resource
VOTE_COMMIT, VOTE_READONLY, VOTE_ROLLBACK
 
Constructor Summary
SOAPResource(BtpMessage msg, Actor from)
           
 
Method Summary
 void commit_one_phase()
          commit 1 phase.
 void commit()
          phase 2 of the 2PC.
 void forget()
          forget heuristics about this transaction.
 int prepare()
           
 void rollback()
          rollback transaction
 void setCohesion(boolean coh)
           
 String stringStatus()
           
static String stringStatus(int status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPResource

public SOAPResource(BtpMessage msg,
                    Actor from)
Method Detail

prepare

public int prepare()
            throws RemoteException
Specified by:
prepare in interface org.objectweb.jonas_tm.Resource
RemoteException

rollback

public void rollback()
              throws RemoteException
rollback transaction

Specified by:
rollback in interface org.objectweb.jonas_tm.Resource
RemoteException

commit

public void commit()
            throws RemoteException
phase 2 of the 2PC.

Specified by:
commit in interface org.objectweb.jonas_tm.Resource
RemoteException

commit_one_phase

public void commit_one_phase()
                      throws RemoteException
commit 1 phase.

Specified by:
commit_one_phase in interface org.objectweb.jonas_tm.Resource
RemoteException

forget

public void forget()
            throws RemoteException
forget heuristics about this transaction.

Specified by:
forget in interface org.objectweb.jonas_tm.Resource
RemoteException

stringStatus

public String stringStatus()

stringStatus

public static String stringStatus(int status)

setCohesion

public void setCohesion(boolean coh)