You need not place the property file outside your application. You can package
this property file as part of your application(may be in the same jar/war in
which your servlet is present) and later on in your code of servlet, you can
retrieve the same as follows:
Servlet {
|
| init() {
| InputStream inputStream =
this.getClass().getClassLoader().getResourceAsStream("yourPropertiesFileName.properties");
| java.util.Properties props = new Properties();
| props.load(inputStream);
| }
|
| }
You will find more information on this here:
http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961498#3961498
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961498
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user