Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.jms.tx
Class MessagingXAResource

    java.lang.Object
      org.jboss.jms.tx.MessagingXAResource

All Implemented Interfaces:
  javax.transaction.xa.XAResource

public class MessagingXAResource
extends java.lang.Object
implements javax.transaction.xa.XAResource

An XAResource implementation. This defines the contract for the application server to interact with the resource manager. It mainly delegates to the resource manager.

Version:
  1.1 MessagingXAResource.java,v 1.1 2006/04/21 12:41:13 timfox Exp
Author:
  Tim Fox, Ovidiu Feodorov Parts based on JBoss MQ XAResource implementation by:, Hiram Chirino (Cojonudo14@hotmail.com), Adrian Brock

Field Summary

Fields inherited from interface javax.transaction.xa.XAResource
`TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY`

Constructor Summary
`MessagingXAResource(ResourceManager rm, SessionState sessionState)`

Method Summary
`void` | `commit(javax.transaction.xa.Xid xid, boolean onePhase)`
`void` | `end(javax.transaction.xa.Xid xid, int flags)`
`void` | `forget(javax.transaction.xa.Xid xid)`
`int` | `getTransactionTimeout()`
`boolean` | `isSameRM(javax.transaction.xa.XAResource xaResource)`
`int` | `prepare(javax.transaction.xa.Xid xid)`
`javax.transaction.xa.Xid[]` | `recover(int flags)`
`void` | `rollback(javax.transaction.xa.Xid xid)`
`void` | `setPreventJoining(boolean preventJoining)`
`boolean` | `setTransactionTimeout(int timeout)`
`void` | `start(javax.transaction.xa.Xid xid, int flags)`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### MessagingXAResource

    public MessagingXAResource(ResourceManager rm,
                               SessionState sessionState)

Method Detail

### setTransactionTimeout

    public boolean setTransactionTimeout(int timeout)
                                  throws javax.transaction.xa.XAException

  Specified by:
    `setTransactionTimeout` in interface `javax.transaction.xa.XAResource`
  Throws:
    `javax.transaction.xa.XAException`

### getTransactionTimeout

    public int getTransactionTimeout()
                              throws javax.transaction.xa.XAException

  Specified by:
    `getTransactionTimeout` in interface `javax.transaction.xa.XAResource`
  Throws:
    `javax.transaction.xa.XAException`

### isSameRM

    public boolean isSameRM(javax.transaction.xa.XAResource xaResource)
                     throws javax.transaction.xa.XAException

  Specified by:
    `isSameRM` in interface `javax.transaction.xa.XAResource`
  Throws:
    `javax.transaction.xa.XAException`

### commit

    public void commit(javax.transaction.xa.Xid xid,
                       boolean onePhase)
                throws javax.transaction.xa.XAException

  Specified by:
    `commit` in interface `javax.transaction.xa.XAResource`
  Throws:
    `javax.transaction.xa.XAException`

### end

    public void end(javax.transaction.xa.Xid xid,
                    int flags)
             throws javax.transaction.xa.XAException

  Specified by:
    `end` in interface `javax.transaction.xa.XAResource`
  Throws:
    `javax.transaction.xa.XAException`

### forget

    public void forget(javax.transaction.xa.Xid xid)
                throws javax.transaction.xa.XAException

  Specified by:
    `forget` in interface `javax.transaction.xa.XAResource`
  Throws:
    `javax.transaction.xa.XAException`

### prepare

    public int prepare(javax.transaction.xa.Xid xid)
                throws javax.transaction.xa.XAException

  Specified by:
    `prepare` in interface `javax.transaction.xa.XAResource`
  Throws:
    `javax.transaction.xa.XAException`

### recover

    public javax.transaction.xa.Xid[] recover(int flags)
                                       throws javax.transaction.xa.XAException

  Specified by:
    `recover` in interface `javax.transaction.xa.XAResource`
  Throws:
    `javax.transaction.xa.XAException`

### rollback

    public void rollback(javax.transaction.xa.Xid xid)
                  throws javax.transaction.xa.XAException

  Specified by:
    `rollback` in interface `javax.transaction.xa.XAResource`
  Throws:
    `javax.transaction.xa.XAException`

### start

    public void start(javax.transaction.xa.Xid xid,
                      int flags)
               throws javax.transaction.xa.XAException

  Specified by:
    `start` in interface `javax.transaction.xa.XAResource`
  Throws:
    `javax.transaction.xa.XAException`

### toString

    public java.lang.String toString()

### setPreventJoining

    public void setPreventJoining(boolean preventJoining)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 JBoss Inc. All Rights Reserved.