wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes deploying 2 different environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "deploying 2 different environment" Watch "deploying 2 different environment" New topic
Author

deploying 2 different environment

ihsan kocak
Ranch Hand

Joined: Mar 14, 2012
Posts: 31
hi all, i have 2 environments:prp and stb.i have a project i deploy it into these 2 environments.but for each environment i should do some changes in a java file(userbean.java) .moreover, weblogic.xml and web.xml files of prp is different than stb environment.
i dont want to change these files for every time i deploy into different environments.

is there any method to prevent chnging xml files while deploying into different environment?
Best Regards.
Sudhir Ravindra
Greenhorn

Joined: May 31, 2010
Posts: 16
if you build with maven, you can setup deployment property file based configuration file filtering.
Described in http://www.sonatype.com/books/mvnref-book/reference/resource-filtering-sect-description.html
Could be possible in other build tools as well.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: deploying 2 different environment
 
Similar Threads
Cactus plugin ???
How to deploy a service on 2 different ports?
Java Application Deployment Best Practices
ear in a distributed setup
Weblogic newbie