users@glassfish.java.net

Re: Design Suggestions Properties/Resources

From: <glassfish_at_javadesktop.org>
Date: Fri, 19 Oct 2007 10:02:51 PDT

[code]
    URL url = this.getClass().getClassLoader().getResource("example.properties"));
[/code]

You can put the file "example.properties" in to the domain1/lib/classes directory, and both your EJB tier and your servlets will see that property file. This is domain global (not application global).
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=241253