3 Replies Latest reply on Sep 17, 2012 10:53 AM by jhalliday

    How to register custom XAResourceRecovery class ?

    jubecker

      We are trying to implement recovery for a custom XAResource. Our first approch with a serializable XAResource failed due to class loading issues.

      Jonathan Halliday pointed out, we should go the non serializable way (https://community.jboss.org/message/757588#757588).

      We implemented the XAResourceRecovery interface but we ran into class loading issues as well.

      The registration was done with a system property:

       

      {code:xml}

      <system-properties>

          <property name="com.arjuna.ats.jta.recovery.XAResourceRecoveryVSNT" value="com.versant.odbms.recovery.VersantXAResourceRecovery;database=jpaDB1@vm3" />

      </system-properties>

      {code}

       

      Obviously the implementation class from our module was not found.

       

      We also tried registering a XAResourceRecoveryHelper on the XAREcoveryModule via RecoveryManager.manager(), but this also failed, and feels very hackish.

       

      What is the proper way of registering a custom XAResourceRecovery class without running into class loading issues?