Database properties after deployment

View: New views
2 Messages — Rating Filter:   Alert me  

Database properties after deployment

by Nico Robin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all

After the build has been done and the .war has been created, how do we set database properties without rebuild the application from the start ?
(e.g i want to change the database server IP address or change root password to mysql etc.)

Where is the database.properties reside in the webapp ?

thanks

Re: Database properties after deployment

by Roman Puchkovskiy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Nico.

As far as I remember, this file is not put into WAR. Database settings
are saved in the DataSource configuration which is server-specific. For
instance, for Tomcat 5.5/6 such configuration is in file which is called
context.xml and put to dist directoty during the build. When the file is
deployed to Tomcat, it's renamed to atleap.xml and put to
${catalina.base}/conf/Catalina/${host}/. So, to change DB settings
without the rebuild, you may locate this atleap.xml file which is
deployed, and modify it.

Nico Robin writes:

> Dear all
>
> After the build has been done and the .war has been created, how do we set
> database properties without rebuild the application from the start ?
> (e.g i want to change the database server IP address or change root password
> to mysql etc.)
>
> Where is the database.properties reside in the webapp ?
>
> thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...