Hi Dan:

> I'm striking out in my attempts to get WAS 3.02 to discover my properties
> files that are supposedly in my classpath
> ...
> So my question is, how can I do this so the properties file is known only
> within the App Server or Web App context, not the
> Admin Server context.  Where should I put the file and set up the path for
> WAS to find it?
>

Under WebSphere 3.02 we put our properties files in the servlet directory of
the particular web app.

> Or perhaps I'm going about this the wrong way and shouldn't be using the
> ClassLoader approach like so
>
>         properties = new Properties();
> ...
>
this.getClass().getClassLoader().getSystemResourceAsStream(PROPERTIES_FILENA
ME);
>                 // Reads the property list from the input stream
>             properties.load(in);

We read in our properties file like so:

    Properties p = new Properties();
    p.load(new FileInputStream(filename));

John Hicks
ceriumworks.com
XMLServlet XMLOutline XMLdb

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to