Search in sources :

Example 6 with JTAActionBean

use of com.arjuna.ats.internal.jta.tools.osb.mbean.jta.JTAActionBean in project narayana by jbosstm.

the class ObjStoreBrowserTest method getTransactionBean.

private JTAActionBean getTransactionBean(ObjStoreBrowser osb, TransactionImple tx, boolean present) {
    // there should be one MBean corresponding to the Transaction tx
    UidWrapper w = osb.findUid(tx.get_uid());
    if (!present) {
        assertNull(w);
        return null;
    }
    assertNotNull(w);
    OSEntryBean ai = w.getMBean();
    assertNotNull(ai);
    // the MBean should wrap a JTAActionBean
    assertTrue(ai instanceof JTAActionBean);
    return (JTAActionBean) ai;
}
Also used : OSEntryBean(com.arjuna.ats.arjuna.tools.osb.mbean.OSEntryBean) UidWrapper(com.arjuna.ats.arjuna.tools.osb.mbean.UidWrapper) JTAActionBean(com.arjuna.ats.internal.jta.tools.osb.mbean.jta.JTAActionBean)

Aggregations

JTAActionBean (com.arjuna.ats.internal.jta.tools.osb.mbean.jta.JTAActionBean)6 LogRecordWrapper (com.arjuna.ats.arjuna.tools.osb.mbean.LogRecordWrapper)2 OSEntryBean (com.arjuna.ats.arjuna.tools.osb.mbean.OSEntryBean)2 UidWrapper (com.arjuna.ats.arjuna.tools.osb.mbean.UidWrapper)2 XAResourceRecordBeanMBean (com.arjuna.ats.internal.jta.tools.osb.mbean.jta.XAResourceRecordBeanMBean)2 XAResourceRecordBeanMBean (com.arjuna.ats.internal.jta.tools.osb.mbean.jts.XAResourceRecordBeanMBean)2 ObjectName (javax.management.ObjectName)2 TransactionImple (com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple)1 TransactionImple (com.arjuna.ats.internal.jta.transaction.jts.TransactionImple)1 FailureXAResource (com.hp.mwtests.ts.jta.tools.FailureXAResource)1