The moose likes Object Relational Mapping and the fly likes Configuring multiple database in JPA? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Configuring multiple database in JPA?" Watch "Configuring multiple database in JPA?" New topic
Author

Configuring multiple database in JPA?

Shobha Korrapati
Greenhorn

Joined: Aug 08, 2007
Posts: 13
Hi,
I have to do search using 2 databases in my application,
and we are using JPA.can anyone help me out about how to configure for
2 databases using persistence.xml

Thanks in advance
Shobha


SCJP , SCWCD
Edvins Reisons
Ranch Hand

Joined: Dec 11, 2006
Posts: 364
Define two persistence units, one for each database.
 
 
subject: Configuring multiple database in JPA?
 
Threads others viewed
Hibernate Commnication between two database
WSAD5.0.1 jdbc:odbc problem : No suitable Driver
Correct approach ? Stored Proc (returning cursor) Vs Prepared statment
Connecting 2 entites to 2 separate databases
2 phase commit
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture