• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Poperties file

 
Faris A Saduli
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I need to create a property file to access single URL in different phases like TEST , QA, PRODUCTION environment in websphere.
Plz help me how to do it, i created on .properties file wht the next step.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34863
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Faris,
Now you have to point to the proper properties file at deployment time. Your choices:
1) Copy over the environment specific file into a common location.
2) Adjust the WAS classpath to include the environment specific file.
 
Ed Wallen
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a Shared Library. Move the same .EAR from environment to environment, but keep you env specific properties files in the shared library. WAS will find them on the classpath as long as it is associated to your application (through the admin console).

-Ed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic