• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic