I have a MBeanService registered in Jboss 3.2.6 as a exploded SAR. The structure is like
demo.sar
|__ conf/ - test.properties
|__ com/ ... - java classes
|__ META-INF/ - jboss-app.xml jboss-services.xml
|__ 3rdparty.jar, etc
I can't control the way the 3rdparty.jar. It has code such as...
Properties props = new Properties();
props.load( new FileInputStream( "test.properties" ) );
String url = props.getProperty( "jndi-serverURL" );
Where should I put the test.properties to make the Properties.load() work? I think as long as the properties are in the classpath, it should be fine. I never have problem with that. But why it doesn't work in Jboss?
demo.sar/test.properties