First of all I'd recommend that you install JBoss Transactions. There's a section in the manuals about LRCO.
Thanks! Which jar contains the marker interface com.arjuna.ats.jta.resources.LastResourceCommitOptimisation? I downloaded jbossts-full-4.2GA.zip and scanned it and could not find the class file. I was able to locate StartXAResource and EndXAResource in jbossjta.jar.
I dug further and found the marker interface org.jboss.tm.LastResource. The javadoc for that indicates that it can be used to tag a non xa resource. Is that the one I should use?
In the programer guide, a different marker interface is specified which as I mentioned in my prev post I have not success locating in any jar.
In order to use the LRCO, your XAResource implementation must extend the com.arjuna.ats.jta.resources.LastResourceCommitOptimisation marker interface..
The manuals are wrong: that interface was removed during the move from Arjuna to JBoss for IP reasons. We'll be adding it back at some stage. I've added a JIRA issue if you want to vote on it http://jira.jboss.com/jira/browse/JBTM-87