• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuring multiple database in JPA?

 
Shobha Korrapati
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Define two persistence units, one for each database.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic