• 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

Single DB,Two JPA Units for different Enterprise Modules

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic