I have tried reading a Properties file from my ejb but with no luck.
Here are some examples that I tried but didn't work:
InputStream in = ClassLoader.getSystemResourceAsStream("/com/util/o.properties");
Object n =
ClassLoader.getSystemClassLoader().getResource("/com/util/o.properties");
ClassLoader c = Thread.currentThread().getContextClassLoader();
Object b =
c.getSystemClassLoader().getResource("/com/util/o.properties");
Object i =
mySessionCtx.getClass().getResourceAsStream("/o.properties");
My objects always come as null. I tried placing my file at the top directory in the
jar, or unde com.util package.
Please let me know if that's the correct way to read this file, and where I should
place it in my jar on jboss.
Thanks so much in advance.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835820#3835820
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835820
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user