Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Single DB,Two JPA Units for different Enterprise Modules  RSS feed

 
Raghunath Nandyala
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ALL,

I'm using JPA(Hibernate) for MySQL, with one web application and one mdb on glassfish. Here the problem is ,

phase1)inserting one entity into persistence , sends the object id to mdb queue
phase2)mdb receives the id from message and retrieves the persisted entity from db and process it. But unfortunately persistent unit in mdb is not able to pick the entity.

Please suggest me , how I can implement 2 persistent units at two ent-modules.

thanks
raghunath
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!