aspose file tools*
The moose likes Object Relational Mapping and the fly likes Single DB,Two JPA Units for different Enterprise Modules Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Single DB,Two JPA Units for different Enterprise Modules " Watch "Single DB,Two JPA Units for different Enterprise Modules " New topic
Author

Single DB,Two JPA Units for different Enterprise Modules

Raghunath Nandyala
Ranch Hand

Joined: Jan 24, 2006
Posts: 64
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


SCBCD,SCWCD,SCJP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Single DB,Two JPA Units for different Enterprise Modules
 
Similar Threads
Can an Entity Bean be an Asyncronous Queue Consumer?
EJB3 Beta Certification - Help =))
EJB3 Beta Certification - EntityManager BASIC notes.
EJB3 Beta Certification - EntityManager BASIC notes. (PART II)
Difference between detached entity and new entity JPA