• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

One ear file for all environments

 
Viking Kethineedi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pat,
thanks so much. Can you please make it more clear for me.
can you place sample code?

thanks again,
K.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic