This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes What is wrong with my JTA? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "What is wrong with my JTA?" Watch "What is wrong with my JTA?" New topic
Author

What is wrong with my JTA?

Michal Glowacki
Ranch Hand

Joined: Mar 14, 2006
Posts: 114
hi guys,

I've read half of the internet already and I am still not able to solve my problem.

I have a web application which contains a servelt. To this servlet, another company is sending xml data I need to parse and persist in database. In order to be able to persist any data in subclasses of the servlet, I need to begin usertransaction (injected, it is seam 2 application). When XML is big, I often run into long share locks errors (or even deadlocks) in my other application using same database tables.

So I need to change this one big transaction into several smaller in the subclasses (invoked from servlet or "deeper"), however nothing works.

Could anyone give just a hint? The only thing I could imagine is to use non-jta entity manager, but somehow I'm afraid of this solution.

Regards,
Michal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is wrong with my JTA?
 
Similar Threads
Entity not persisting
Best to store data in...so as to avoid admin from accessing it...??
Transactions - JTA or JDBC?
using hibernate to import data into oracle from xml files
Value not getting inserted in EJB 3 with BEA