@Jesper: I have switched to Wildfly 8.0.0.Alpha2
I set a breakpoint in my JCA Adapters XA Resource "commit" method, which is called after the prepare method. I crash the server during the commit so that I can test what happens when the server restarts. The server recognises that there is still a transaction to complete, but it just logs the following, similar to before:
22:18:33,199 WARN [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016037: Could
not find new XAResource to use for recovering non-serializable XAResource XAReso
urceRecord < resource:null, txid:< formatId=131077, gtrid_length=29, bqual_lengt
h=36, tx_uid=0:ffffc0a80127:-2363921:51d5d802:d, node_name=1, branch_uid=0:ffffc
0a80127:-2363921:51d5d802:13, subordinatenodename=null, eis_name=java:/eis/SAPRe
sourceAdapter >, heuristic: TwoPhaseOutcome.FINISH_OK, product: SAP Resource Ada
pter/1.0, jndiName: java:/eis/SAPResourceAdapter com.arjuna.ats.internal.jta.res
ources.arjunacore.XAResourceRecord@117c7fd >
22:18:36,503 WARN [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016037: Could
not find new XAResource to use for recovering non-serializable XAResource XAReso
urceRecord < resource:null, txid:< formatId=131077, gtrid_length=29, bqual_lengt
h=36, tx_uid=0:ffffc0a80127:-2363921:51d5d802:d, node_name=1, branch_uid=0:ffffc
0a80127:-2363921:51d5d802:16, subordinatenodename=null, eis_name=unknown eis nam
e >, heuristic: TwoPhaseOutcome.FINISH_OK com.arjuna.ats.internal.jta.resources.
arjunacore.XAResourceRecord@19cda3d >
22:18:40,607 WARN [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016038: No XAR
esource to recover < formatId=131077, gtrid_length=29, bqual_length=36, tx_uid=0
:ffffc0a80127:-2363921:51d5d802:d, node_name=1, branch_uid=0:ffffc0a80127:-23639
21:51d5d802:13, subordinatenodename=null, eis_name=java:/eis/SAPResourceAdapter
>
22:18:43,384 WARN [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016038: No XAR
esource to recover < formatId=131077, gtrid_length=29, bqual_length=36, tx_uid=0
:ffffc0a80127:-2363921:51d5d802:d, node_name=1, branch_uid=0:ffffc0a80127:-23639
21:51d5d802:16, subordinatenodename=null, eis_name=unknown eis name >
Do I need to make any of the classes serializable? Since it says: "Could not find new XAResource to use for recovering ***non-serializable*** XAResource"?