Hi,
How can I load a properties file in the class path from an axis2 module
(handler class)?.
The properties files contains deployment properties, so packaging it in
a jar is inconvenient.
Basically the property file need to be put in, say JBOSS_HOME/bin. Or in
EAR/META-INF
The problem is that a handler class can not load a properties file
unless otherwise it is available in the .mar file. Is it a limitation or
Using axis2 1.2
Deployment model: Customized axis2 war (with services and modules)
inside an ear.
Deployed in jboss 4.0.5
All the following attempts have failed.
getClass().getClassLoader().getResourceAsStream("someconfig.properties")
);
getClass().getResourceAsStream("someconfig.properties"));
Classloader.getSystemResourceAsStream("someconfig.properties"));