Reputation: 173
I am maintaining/developing a web application which is deployed in multiple nodes of a websphere cell. There are two nodes in a WAS cell. Each node has a web server in which my web application is deployed. So there are two instances of web application.
I can use the URL provider to read the property file from the web application. (Reference)
But I have to maintain an identical property file on each server. When I need to change I have to change it on both servers.
Is there anyway I can maintain a single property file and access it from web application deployed on different places? Or any other better way to do this?
Upvotes: 0
Views: 1182
Reputation: 1021
If you read your property files using a URL resource (a good practice), then you can host your property file on a single internal web server. The URL resource reference in each of your web containers would point to this internal web server. Then you would only have to change the property file in your internal web server document root.
This practice has several drawbacks.
I believe the property file per node is going to work best. If copying a file twice is so much more onerous than copying it once, just script it. That will scale to however many nodes you opt to deploy.
Upvotes: 2
Reputation: 8058
CAVEAT: This is a bit outside my experience, but if I'm understanding your question correctly...
If you have federated the servers as a single cluster, I believe the Intelligent Management tools can take care of copying an equivalent configuration out to all of them. Each would then read the configuration information from their own local copy.
Upvotes: 0