Howdy,

>I'm expecting that when I go to load the properties, it will look in
>WEB-INF/classes *first*, from this snip from the CLASSLOADER doc
>====================================================================
>Therefore, from the perspective of a web application, class or resource
>loading looks in the following repositories, in this order:
>
>/WEB-INF/classes of your web application
>/WEB-INF/lib/*.jar of your web application
>====================================================================
>
>Ok so far?

Yup.

>getClass().getClassLoader().getResourceAsStream(property.filename.start
i
>ng.with.slash)
>
>I've been using just getClass().getResourceAsStream(), but I think to
>get the Tomcat-guaranteed behaviour, I need to use the classloader.
>And I'm thinking this will still work for non web-app uses of
>library.jar
>
>Does all that seem accurate? I'm just thinking out loud. ;)

getClass().getResource() just delegated to the classloader.  So you're
fine with just getClass().getResource() (or getResourceAsStream).

Looks good so far...

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to