This content has been marked as final.
Show 4 replies
-
1. Re: Doing persistence operations in worker threads
jaikiran May 25, 2008 8:51 AM (in response to rituraj_tiwari)Please do not post the same question in multiple forums http://www.jboss.com/index.html?module=bb&op=viewtopic&t=136149
-
2. Re: Doing persistence operations in worker threads
rituraj_tiwari May 25, 2008 12:31 PM (in response to rituraj_tiwari)"jaikiran" wrote:
Please do not post the same question in multiple forums http://www.jboss.com/index.html?module=bb&op=viewtopic&t=136149
Please do not post a response if you cannot be helpful.
Given my problem, its unclear which camp it belongs in: Seam, Hibernate, JTA, Jboss EJB. Given that there is a forum called EJB3.0 and another one called JBoss/EJB, I think my cross-posting to EJB3.0 is completely appropriate.
I see that you are a frequent poster here and I commend you on your work for the community. Let me know if you have never advised someone to move their post to another forum. What would have been better is if you read my question and told me what the right forum was.
-Raj -
3. Re: Doing persistence operations in worker threads
rituraj_tiwari May 25, 2008 2:42 PM (in response to rituraj_tiwari)Folks,
Here is a resolution to my problem:
What fixed this for me was doing
UserTransaction.begin() before creating the entity manager from the entity manager factory.
If I create my entity manager and then start the user transaction, the entity manager is never able to associate with the started transaction. All persistent operations go to the abyss.
Not sure if this is a bug or known and accepted behaviour.
-Raj -
4. Re: Doing persistence operations in worker threads
jaikiran May 26, 2008 2:05 AM (in response to rituraj_tiwari)"rituraj_tiwari" wrote:
Please do not post a response if you cannot be helpful.
Given my problem, its unclear which camp it belongs in: Seam, Hibernate, JTA, Jboss EJB. Given that there is a forum called EJB3.0 and another one called JBoss/EJB, I think my cross-posting to EJB3.0 is completely appropriate.
Raj,
Posting in multiple forums (unless someone actually asks you to do it) wastes people's time who try to solve your problems. It also creates duplicate conversations."rituraj_tiwari" wrote:
I see that you are a frequent poster here and I commend you on your work for the community. Let me know if you have never advised someone to move their post to another forum. What would have been better is if you read my question and told me what the right forum was.
I have advised people to post in a different forum if the original question did not evoke enough responses or if the forum was not right. If you look at my earlier reply, i have pasted a link to your other discussion so that if anyone ever runs into this thread, he will be able to find a discussion in the other thread. The intention was to keep the discussion at one place.