permaculture playing cards*
The moose likes Websphere and the fly likes One ear file for all environments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "One ear file for all environments" Watch "One ear file for all environments" New topic
Author

One ear file for all environments

Viking Kethineedi
Greenhorn

Joined: Mar 16, 2006
Posts: 14
Is there a way that we can implement the same ear file for all the environments, I mean for QA/ DEV/ PROD. Can we set the JVMs cutsom properties for this purpose?
Pat Flickner
Ranch Hand

Joined: Nov 17, 2003
Posts: 173
That's what we do, have the same EAR in Dev, Test, and Prod. We set up the properties files to be "HOSTNAME.property = property_value", and when we read in the property, we prefix the property we call with the hostname based on the server it's coming from. Since the server name usually incorporates the entire DNS name, we have an additional property that matches the first part of the server name with its hostname and then use that to pass it everywhere. I don't know how pretty that is, but it works well.
Viking Kethineedi
Greenhorn

Joined: Mar 16, 2006
Posts: 14
Hi Pat,
thanks so much. Can you please make it more clear for me.
can you place sample code?

thanks again,
K.
 
 
subject: One ear file for all environments
 
Similar Threads
How can I load .properties file located outside the application as resource bundle?
app server properties that are availabile to ear
Difference among jar, war and ear files?
Maintaining an application.
IOException : logo.png is not a recognized imageformat