[jboss-user] [Installation, Configuration & Deployment] - Re: read in packaged properties file
PeterJ
do-not-reply at jboss.com
Wed Dec 20 12:14:40 EST 2006
You stated "props file packaged as" which I assume means that your poroperties file in within a jar file. Assuming your jar file has the following contents:
org/foo/bar/Some.class
org/foo/Other.class
org/foo/sysprops.properties
then from any of the classes in this jar file, you can load the properties file by:
Properties prop = new Properties();
prop.load(this.getClass().getResourceAsStream("org.foo.sysprops"));
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995370#3995370
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995370
More information about the jboss-user
mailing list