Did you follow the instructions exactly, using the right version of each software component?
I got it working.
I could not follow instructions directly since I am using JBoss 4.2.2 and JBossTSRecoveryInAS Wiki is talking about older version JBoss 4.0.
I tried it again on the clean JBoss 4.2.2 installation - and it worked. Before I deployed the sample on the JBoss 4.2.2 which we built for our app (it has some configuration changes), and it did not work, as I described below.
Now I will try to narrow the configuration differences to find out what causes the recovery problem in our build.
Thanks for the response, the sample is working.
Actually I found what caused the problem. The instructions on the Wiki says:
enable: property name="com.arjuna.ats.arjuna.recovery.recoveryExtension5" value="com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule"
You can remove the other entry as we do not need it for this example.
JBoss 4.2.2 comes with the following properties enabled:
property name="com.arjuna.ats.arjuna.recovery.recoveryExtension1" value="com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule"
property name="com.arjuna.ats.arjuna.recovery.recoveryExtension2" value="com.arjuna.ats.internal.txoj.recovery.TORecoveryModule"
property name="com.arjuna.ats.arjuna.recovery.recoveryExtension3" value="com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule"
As soon as you remove the first two properties (as suggested by Wiki) the sample is not working: recovery does not happen. When all three properties present - the recovery works.
Hmm, you are looking at an out of date wiki entry. If you refer to the later wiki entry for JBossTSRecovery at https://www.jboss.org/community/docs/DOC-10788 you will see that this has been corrected to say the following
You can remove the jts XARecoveryModule as it is not needed in this example.
Yes, plus "You can remove the other entry as we do not need it for this example. " didn't mean remove all other entries, just the *other* XARecoveryModule entry.
Please note, the examples referenced from this page: http://www.jboss.org/community/docs/DOC-10789
no longer exist. Broken link is: http://wiki.jboss.org/wiki/attach?page=JBossTSRecoveryInAS%2Frecoveryas_local.tar.gz
The examples do still exist and the links to them at the bottom of the page still work. The links in-lined in the article text broke when the wiki software got 'upgraded'. I've fixed them. Thanks for letting us know.