• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is wrong with my JTA?

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic