Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.0
Hello,
I need to dynamically get the datasource value for various envoirnments like test or production.
Following is my hibernate configuration properties -
hibernate.connection.username=user
hibernate.connection.password=pwd
hibernate.connection.datasource=jdbc/testDB
hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
hibernate.dialect=org.hibernate.dialect.OracleDialect
connection.datasource has test database value - jdbc/testDB.
I need to change it to production value - pordDB, for ear deployment in production.
testDB & prodDB values are mapped in web.xml.
What i need to do to get <connection.datasource> value dynamically change according to the envoirnments.
What are the alternative solutions?
Thanks.
Amit.