Unfortuately 4.2.3 is rather old and predates my time on the team. I do have some questions though:
1. To what end are you needing to overide CheckedAction?
2. Is it possible for you to upgrade to AS7? The number of upgraded features since 4.2.3 is absolutely incredible!
You need to get hold of the underlying BasicAction and call setCheckedAction on it. Do this before you terminate the transaction or it will be useless.
We are experiencing an issue with a third party vendor code which causes JTA transaction not being committed sucessfully. We open a support case with the vendor, but they do not seem to be able to help us identify what the issue may be.
The error below is flooding our server.log file.
I just want to be able to print out the stacktrace of the thread that causes the transaction to be aborted in the first place in order to see what code / component causes the problem.
AS7 is out of the question for us at the moment because our corporate standard is still running on JBoss 4.2 until at least the end of the year.
Caused by: org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: a894394:ecc1:4fdb77ef:a145 status: ActionStatus.ABORTED >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: a894394:ecc1:4fdb77ef:a145 status: ActionStatus.ABORTED >)
... 114 more
Caused by: javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: a894394:ecc1:4fdb77ef:a145 status: ActionStatus.ABORTED >
... 115 more
Hi Mark, thank you for the suggestion.
Is there a way to accomplish the task through configuration?
The property that needs to be set in the config is: com.arjuna.ats.jts.checkedTransactions=YES
Mark, given that it is a third party vendor code for which we do not have the source code, is there a hook for me to provide my own CheckedAction class?
We do not have the freedom to change code in order to invoke the setCheckedAction() method from Current programmatically.
> is there a hook for me to provide my own CheckedAction class?
Nope, it wasn't added until later. JBTM-433
Thanks you, all. Because we do not have the source code, I decide to modify the BasicAction class and create our custom CheckedAction class directly. I then update the jbossjta.jar file with the new BasicAction class. That works fine. I find that there are contentions in an entity bean from the vendor code. Now I'm trying to resolve the contention issue but I'm also stuck there. I'll create another thread to get help from the community on the new issue.
OK, but realise that we can't really give you much help with a modified codebase. Of course we'll try, but there's a limit.