You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Vijesh A.V." <vi...@emirates.com> on 2007/08/15 12:10:59 UTC
[Axis2] Loading properties file from a module
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"));