users@glassfish.java.net

Re: How do I use glassfish to bind a java.net.URL Resource Reference

From: <glassfish_at_javadesktop.org>
Date: Fri, 14 Mar 2008 06:22:56 PST

This is how we configure ours, so in the web.xml it shows this.

<resource-ref>
<res-ref-name>url/InquiryPortal</res-ref-name>
<res-type>java.net.URL</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>

Nothing is placed in the sun-web.xml.

Then the URL points to a properties file and inside that prop file is whatever is necessary for the specific environment.

Each environment then points to a different prop file, and we don't have to change anything at build time.
[Message sent by forum member 'athrawn17' (athrawn17)]

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