Hi,
I wanted to know if there is a way we can separate the server configurations away from a web application so that we may be free to deploy into any
JBoss server without having to worry about server configurations during
build time.
This is the situation. We have built a web application that deploys to four separate JBoss instances, and each server has its own set of configurations that are required by the web application. Ideally, I would like to house those configurations on each JBoss server (ideally as a properties or xml), and somehow have the web application read those values (they would be
string values similar to those from a properties file) from the server it is deployed against
without having to build the application 4 different times. I have thought about using JNDI, but I do not know to implement it without having to place the values within the env-entry tags within the jboss-web.xml/web.xml which defeats the purpose of what I am trying to do.
Our application is a standard
J2EE application that uses the following technologies.
- JDK 1.6
- JBoss 5.1.0.GA
If there are any suggestions, please let me know.
Thanks,
Juan