|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to set "hibernate.properties" environment specific
Hi All,
Greetings, I would like to know steps for, How to configure the "hibernate.properties" specific to environment(dev/stage/prod). we are using .properties file for DB connection utility with below props. Code:
hibernate.dialect = org.hibernate.dialect.OracleDialect hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver hibernate.connection.url=jdbc:oracle:thin:@host:port_no:dsn hibernate.connection.username=username hibernate.connection.password=password hibernate.jdbc.batch_size=0 I need to put this for specific to the environment, as of now we are using the "hibernate.properties" for every environment, we used to change the db connection everytime whenever we want to deploy to dev/stage/prod envs which is causing issue with other developers, if they are not aware of usage of this process. Iam using Tomcat server and deploying the war file in to it. Please let me know your ideas on this. Thanks, |
|
#2
|
|||
|
|||
|
Any help is appreciated...!!!
|
|
#3
|
|||
|
|||
|
if it is not the correct place to put this question please let me point to the correct place...
|
|
#4
|
|||
|
|||
|
Today when i was googling found a link http://galaxy.andromda.org/forum/vie...f9ecbc4fa95e64 which has some info on it. I was trying with this it could resolve the issue.
i.e. Adding the properties to CATALINA_OPTS and export like below.. -Dhibernate.dialect=org.hibernate.dialect.HSQLDialect |
|
#5
|
|||
|
|||
|
The above mentioned process is working like chome....
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| want to 'set' two variables with one 'if' in mssql server 2000 | rekhad | Database | 4 | 10-19-2006 01:21 PM |
| Unable to set environment vars in j2ee | kshama | Java | 0 | 04-03-2003 01:54 PM |
| Get the value of a specific record and column, and set as Textbox's content | newbie | ASP.NET | 0 | 06-19-2001 02:06 PM |
| how can I open an existing Excel workbook with ASP Internet Client ? | Alox | ASP.NET | 1 | 12-23-2000 09:42 AM |
| How to generate Make Files? | aMax | Java | 2 | 08-04-2000 06:55 PM |