Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
2.1.6
Name and version of the database you are using:
Oracle 9i
Hi,
This is concerning a web application that is internationalized running on WAS 5.1.
We have a case where the database for specific locales are different.
We intend to pick up the jndi lookup name configured for each database dynamically depending on the locale of the user.
The jndi lookup name is now configured in the hibernate.cfg.xml
as <property name="connection.datasource">jdbc/A_JNDI</property>.
Is there a way to override the jndi lookup after hibernate configuration and after the sessionfactory is loaded?
Any help would be appreciated.
Thnx,
Sunil