This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Configuring multiple database in JPA?  RSS feed

 
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
Boost this thread!