This content has been marked as final.
Show 2 replies
-
1. Re: EJB unable to find properties file
adrian.brock Mar 30, 2002 3:54 AM (in response to jdsys)In theory you are not allowed to access any file from
an ejb.
In practice you don't have a security manager installed.
More correctly, you should be using env entries in the
deployment descriptor for config.
You haven't said where the property file is,
try something like
Thread.currentThread().getContextClassLoader().getResourceAsStream("META-INF/my.properties");
Regards,
Adrian -
2. Re: EJB unable to find properties file
jdsys Mar 30, 2002 12:23 PM (in response to jdsys)Adrian,
I will try using env entries in the deployment descriptor of my EJB. This seems to be a more standard solution across multiple app. servers. Thank you for your prompt response. :)