Hi,

I am using WebSphere Application Server 4.0 AE (WAS 4.0 AE).

How do we specify the path to read a file from Servlet, EJB, JSP using a

common class?  I.e., Suppose I have written a class CLogger.java that
reads from and writes to a txt file.  It has methods each of which
accepts file path parameter.  Now my question is, what should be the
value of file path parameter while accessing from Servlet/JSP/EJB?
Where should I place the txt file to be available for CLogger?  My
CLogger is a generic class that can be accessed from any of JSP,
Servlet, or EJB(Web module and EJB module).

I thought that reading WAS's server.root property from the admin.config
file would solve my problems, as I can give absolute path by appending
relative path to "server.root" value.  But I donot know how to get this
value from a Web component.  I cannot hard code the path of admin.config

file.  If I do so, my application will not be portable across operating
systems.

These are the doubts bothering me for a long time.  Help me please.

thanks in advance,

Venkat.

===========================================================================
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