This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: One ear file for all environments
 
It's not a secret anymore!