Hi,
I am trying to find the easiest way to use a Properties object from within the app server that comes with the J2EE 1.3.1 SDK from Sun. I am having s slight problem with obtaining the path to the properties file at deploy time. The app server's security manager is not letting me use the call:
Class.getResource( <resource file> ).getPath(); because local access to the directory is not permitted. The docs don't give much info on how the app server's directory permissions are set but I've narrowed it down to the problem because in the absense of a security manager the call works.
First question is, is there a way to get around the security manager restrictions without opening a potential security hole? The second question, is there a way to obtain the path to the properties file using JNDI instead? Or is there a way that I'm not aware of?
I'm not sure where I can put the properties file to allow local access in the Sun app server.
Any help or links would be apprectiated.
I am trying to find the easiest way to use a Properties object from within the app server that comes with the J2EE 1.3.1 SDK from Sun. I am having s slight problem with obtaining the path to the properties file at deploy time. The app server's security manager is not letting me use the call:
Class.getResource( <resource file> ).getPath(); because local access to the directory is not permitted. The docs don't give much info on how the app server's directory permissions are set but I've narrowed it down to the problem because in the absense of a security manager the call works.
First question is, is there a way to get around the security manager restrictions without opening a potential security hole? The second question, is there a way to obtain the path to the properties file using JNDI instead? Or is there a way that I'm not aware of?
I'm not sure where I can put the properties file to allow local access in the Sun app server.
Any help or links would be apprectiated.