Thanks for the prompt answer. I appreciate it.

>If you really really want to read this file, I suggest that you check
>the archives for the recent (a month ago or so) thread on >restrictions
>of I/O which provides information about how to get around this.

I looked in the ar8chives and I saw a bunch of postings on using threads
with EJB. I didnt see one on I/O. I will need to go look again.

>The second part of the answer is that there is a simpler way to do what
>you want to do. Here ya go:
>Properties prp = new Properties();
>prp.load(getClass().getResourceAsStream("/aaa.properties"));


I considered this route as well. In my version I was considering using the
ClassLoader's getResourceAsStream method. But I suppose the ClassLoader isnt
available to the Bean. It will also throw a SecurityException. I liked this
route since I wouldn't have to use the entire path name. Is there a way to
link this with the FSContext Provider and have JNDI return me the resource
as a stream ?
You showed me a way to get the file but what I wanted to make changes and
write it back to disk ?

Ashwin.


The other routes I was considering was doing container-managed persistence.



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to