public CommitMarkableResourceRecordBean(ActionBean parent, AbstractRecord rec, ParticipantStatus listType) { super(parent, rec, listType); init(); // xares = new JTAXAResourceRecordWrapper(rec.order()); }
@Override public String remove() throws MBeanException { if (forget()) return super.remove(); return "Operation in progress"; } }
@Override protected LogRecordWrapper createParticipant(AbstractRecord rec, ParticipantStatus listType) { if (rec instanceof com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord) return new com.arjuna.ats.internal.jta.tools.osb.mbean.jta.XAResourceRecordBean(this, rec, listType); else if (rec instanceof com.arjuna.ats.internal.jta.resources.arjunacore.CommitMarkableResourceRecord) return new com.arjuna.ats.internal.jta.tools.osb.mbean.jta.CommitMarkableResourceRecordBean(this, rec, listType); else return super.createParticipant(rec, listType); } }
private void init() { jndiName = getUid().stringForm(); className = "unavailable"; eisProductName = "unavailable"; eisProductVersion = "unavailable"; timeout = 0; heuristic = -1; xidImple = new XidImple(new XID()); }
@Override protected LogRecordWrapper createParticipant(AbstractRecord rec, ParticipantStatus listType) { if (rec instanceof com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord) return new com.arjuna.ats.internal.jta.tools.osb.mbean.jta.XAResourceRecordBean(this, rec, listType); else if (rec instanceof com.arjuna.ats.internal.jta.resources.arjunacore.CommitMarkableResourceRecord) return new com.arjuna.ats.internal.jta.tools.osb.mbean.jta.CommitMarkableResourceRecordBean(this, rec, listType); else return super.createParticipant(rec, listType); } }
private void init() { jndiName = getUid().stringForm(); className = "unavailable"; eisProductName = "unavailable"; eisProductVersion = "unavailable"; timeout = 0; heuristic = -1; xidImple = new XidImple(new XID()); }
public CommitMarkableResourceRecordBean(ActionBean parent, AbstractRecord rec, ParticipantStatus listType) { super(parent, rec, listType); init(); // xares = new JTAXAResourceRecordWrapper(rec.order()); }
@Override protected LogRecordWrapper createParticipant(AbstractRecord rec, ParticipantStatus listType) { if (rec instanceof com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord) return new com.arjuna.ats.internal.jta.tools.osb.mbean.jta.XAResourceRecordBean(this, rec, listType); else if (rec instanceof com.arjuna.ats.internal.jta.resources.arjunacore.CommitMarkableResourceRecord) return new com.arjuna.ats.internal.jta.tools.osb.mbean.jta.CommitMarkableResourceRecordBean(this, rec, listType); else return super.createParticipant(rec, listType); } }
private void init() { jndiName = getUid().stringForm(); className = "unavailable"; eisProductName = "unavailable"; eisProductVersion = "unavailable"; timeout = 0; heuristic = -1; xidImple = new XidImple(new XID()); }
@Override public String remove() throws MBeanException { if (forget()) return super.remove(); return "Operation in progress"; } }
public CommitMarkableResourceRecordBean(ActionBean parent, AbstractRecord rec, ParticipantStatus listType) { super(parent, rec, listType); init(); // xares = new JTAXAResourceRecordWrapper(rec.order()); }
@Override protected LogRecordWrapper createParticipant(AbstractRecord rec, ParticipantStatus listType) { if (rec instanceof com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord) return new com.arjuna.ats.internal.jta.tools.osb.mbean.jta.XAResourceRecordBean(this, rec, listType); else if (rec instanceof com.arjuna.ats.internal.jta.resources.arjunacore.CommitMarkableResourceRecord) return new com.arjuna.ats.internal.jta.tools.osb.mbean.jta.CommitMarkableResourceRecordBean(this, rec, listType); else return super.createParticipant(rec, listType); } }
private void init() { jndiName = getUid().stringForm(); className = "unavailable"; eisProductName = "unavailable"; eisProductVersion = "unavailable"; timeout = 0; heuristic = -1; xidImple = new XidImple(new XID()); }
@Override public String remove() throws MBeanException { if (forget()) return super.remove(); return "Operation in progress"; } }
public CommitMarkableResourceRecordBean(ActionBean parent, AbstractRecord rec, ParticipantStatus listType) { super(parent, rec, listType); init(); // xares = new JTAXAResourceRecordWrapper(rec.order()); }
@Override protected LogRecordWrapper createParticipant(AbstractRecord rec, ParticipantStatus listType) { if (rec instanceof com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord) return new com.arjuna.ats.internal.jta.tools.osb.mbean.jta.XAResourceRecordBean(this, rec, listType); else if (rec instanceof com.arjuna.ats.internal.jta.resources.arjunacore.CommitMarkableResourceRecord) return new com.arjuna.ats.internal.jta.tools.osb.mbean.jta.CommitMarkableResourceRecordBean(this, rec, listType); else return super.createParticipant(rec, listType); } }
private void init() { jndiName = getUid().stringForm(); className = "unavailable"; eisProductName = "unavailable"; eisProductVersion = "unavailable"; timeout = 0; heuristic = -1; xidImple = new XidImple(new XID()); }
@Override public String remove() throws MBeanException { if (forget()) return super.remove(); return "Operation in progress"; } }
public CommitMarkableResourceRecordBean(ActionBean parent, AbstractRecord rec, ParticipantStatus listType) { super(parent, rec, listType); init(); // xares = new JTAXAResourceRecordWrapper(rec.order()); }
@Test public void testCommitMarkableResourceRecordBean() throws Exception { com.arjuna.common.tests.simple.EnvironmentBeanTest.testBeanByReflection(new CommitMarkableResourceRecordBean(new UidWrapper(Uid.nullUid()))); }