• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPA and MultiThreading

Babu Mehrunnesa
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Am developing an application through JPA. Please take a look into the
code I have sent along with this post
. I have copied few methods into the
class, where am using javax.persistence api to save & update data to DB.

But right now my code supports only single Thread. I need to support the
multiple threads. I googled it, but did't find much. Could you guys pl help
me out in changing my code to support multiple threads.
Do I need to go for synchronization or any thing that is appropriate.
Am using application managed entityManager
We need to consider the PERFORMANCE factor .
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!