There's two things you can do:

1. Change WEB-INF/classes/jdbc.properties
2. Change WEB-INF/classes/applicationContext-resources.xml to use a
JNDI DataSource instead of a Spring-configured one. That way you can
configure it in your app server.

You can also setup a profile in your pom.xml for production so you can
do something like "mvn package -P prod".

http://maven.apache.org/guides/introduction/introduction-to-profiles.html

HTH,

Matt

On 8/20/07, donnie.mcneal <[EMAIL PROTECTED]> wrote:
>
> Is there an easy way to change configure database connection info like
> username/password after the application is war'ed (like a properties file or
> something) together?  It seems like the connection info must be added to the
> pom.xml.  My apologies if the answer to this question has been posted.
> --
> View this message in context: 
> http://www.nabble.com/Deploying-application-into-a-production-environment-tf4302916s2369.html#a12248064
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to