Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using several types of databases in a single web application with hibernate

 
sulthana md
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi,
Can anyone help me out "how can we use several types of database like MYSQL, DB2 etc in a single web application using HIBERNATE ?"
Here for each type of database we will be having different 'hibernate.cfg.xml' file. where do we specify the type of database we want to use? Help me regarding the syntax.
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can bind each factory to JNDI and retrieve them where needed (JNDI-bound session factory).

And welcome to the CodeRanch!
 
sulthana md
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijitha Kumara wrote:You can bind each factory to JNDI and retrieve them where needed (JNDI-bound session factory).

And welcome to the CodeRanch!


the information is very useful .
Thanks VIjitha
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic