• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPA and MultiThreading  RSS feed

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 .
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!