-
1. Re: Non-EE Thread Access to UserTransaction (Seam Asynchronous Quartz Tx Problem)
lowecg2004 Jul 20, 2011 7:25 AM (in response to lowecg2004)Hello,
There's a note by Jason Greene as the last comment in the discussion on AS7 support for a global UserTransaction
http://lists.jboss.org/pipermail/jboss-as7-dev/2011-June/002298.html
We might be able to do a java:/jboss/UserTransaction
What would it take for me to add this resource to my AS7?
Regards,
Chris.
-
2. Re: Non-EE Thread Access to UserTransaction (Seam Asynchronous Quartz Tx Problem)
jaikiran Jul 20, 2011 8:12 AM (in response to lowecg2004)Chris Lowe wrote:
Hello,
There's a note by Jason Greene as the last comment in the discussion on AS7 support for a global UserTransaction
http://lists.jboss.org/pipermail/jboss-as7-dev/2011-June/002298.html
We might be able to do a java:/jboss/UserTransaction
What would it take for me to add this resource to my AS7?
Regards,
Chris.
A bit of coding which you could even provide as a patch to upstream. One of us from the JBoss AS team can do it, but since in your previous post, you expressed willigness in working on this, I guess this would be a good start to contributing to AS7.
To bind to java:/jboss/UserTransaction, you have to do a similar thing like what we do for java:/jboss/TransactionManager, the code for which is here https://github.com/jbossas/jboss-as/blob/master/transactions/src/main/java/org/jboss/as/txn/TransactionSubsystemAdd.java#L221 (line 221 through 236). To get started with providing patches to AS7 codebase, see this http://community.jboss.org/wiki/HackingonAS7. If you need any help, feel free to ask.
-
3. Re: Non-EE Thread Access to UserTransaction (Seam Asynchronous Quartz Tx Problem)
lowecg2004 Jul 20, 2011 4:44 PM (in response to jaikiran)Thanks, that was very helpful. I was able to successfully get Seam Quartz transactions and AS7 working together.
Would the process now be to raise a Jira and submit a patch?
-
4. Re: Non-EE Thread Access to UserTransaction (Seam Asynchronous Quartz Tx Problem)
lowecg2004 Jul 20, 2011 5:30 PM (in response to lowecg2004)A Jira has been raised:
https://issues.jboss.org/browse/AS7-1358
I should be able to get the patch better tested and submitted against the Jira in a few days.
-
5. Re: Non-EE Thread Access to UserTransaction (Seam Asynchronous Quartz Tx Problem)
lowecg2004 Jul 21, 2011 7:45 PM (in response to lowecg2004)Git pull request URL request added to Jira.
Thanks again for your help Jaikiran.
-
6. Re: Non-EE Thread Access to UserTransaction (Seam Asynchronous Quartz Tx Problem)
lowecg2004 Jul 21, 2011 7:48 PM (in response to lowecg2004)BTW, I've also posted the necessary corresponding Seam changes at the following location:
http://seamframework.org/Community/AS7QuartzAsyncTransactionsCouldNotDiscoverTransactionStatus
-
7. Re: Non-EE Thread Access to UserTransaction (Seam Asynchronous Quartz Tx Problem)
jaikiran Jul 22, 2011 12:08 AM (in response to lowecg2004)1 of 1 people found this helpfulHi Chris,
The pull requests are tracked in a separate mailing list. Check the "Get your changes merged upstream" section of http://community.jboss.org/wiki/HackingOnAS7. For the details. Send the Github pull request URL to that mailing list with a bit of details and it will be reviewed and merged soon.
Thanks for providing this patch!
-
8. Re: Non-EE Thread Access to UserTransaction (Seam Asynchronous Quartz Tx Problem)
lowecg2004 Jul 22, 2011 2:58 AM (in response to jaikiran)Thanks for the tip. All done.