objStoreBrowser = new ObjStoreBrowser(); objStoreBrowserTypes.put("StateManager/BasicAction/TwoPhaseCoordinator/AtomicAction", "com.arjuna.ats.internal.jta.tools.osb.mbean.jta.JTAActionBean");
private ObjStoreBrowser createObjStoreBrowser() { ObjStoreBrowser osb = new ObjStoreBrowser(); osb.setType("com.arjuna.ats.arjuna.AtomicAction", "com.arjuna.ats.internal.jta.tools.osb.mbean.jta.JTAActionBean"); return osb; }
objStoreBrowser = new ObjStoreBrowser(); objStoreBrowserTypes.put("StateManager/BasicAction/TwoPhaseCoordinator/AtomicAction", "com.arjuna.ats.internal.jta.tools.osb.mbean.jta.JTAActionBean");
objStoreBrowser = new ObjStoreBrowser(); objStoreBrowserTypes.put("StateManager/BasicAction/TwoPhaseCoordinator/AtomicAction", "com.arjuna.ats.internal.jta.tools.osb.mbean.jta.JTAActionBean");
@Test @BMScript("commitMarkableResourceFailAfterPrepare") public void testObjStoreBrowser() throws Exception { final DataSource dataSource = new JdbcDataSource(); ObjStoreBrowser osb = new ObjStoreBrowser(); Uid uid = generateCMRRecord(dataSource); osb.start(); osb.probe(); // there should be one MBean corresponding to the Transaction UidWrapper w = osb.findUid(uid); assertNotNull("ObjStoreBrowser could not find CMR uid wrapper", w); OSEntryBean ai = w.getMBean(); assertNotNull("ObjStoreBrowser could not find CMR uid", ai); assertEquals("ObjStoreBrowser found the wrong uid", ai.getUid(), uid); checkCMRRecovery(dataSource); w = osb.findUid(uid); assertNotNull("CMR uid still exists after a recovery can", w); } }