my dog learned polymorphism
The moose likes Websphere and the fly likes Poperties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Poperties file" Watch "Poperties file" New topic

Poperties file

Faris A Saduli
Ranch Hand

Joined: Feb 22, 2005
Posts: 58
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

Joined: May 26, 2003
Posts: 32312

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ed Wallen
Ranch Hand

Joined: Feb 11, 2002
Posts: 34
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).

I agree. Here's the link:
subject: Poperties file
It's not a secret anymore!