users@glassfish.java.net

Can someone explain delegate="true"?

From: <glassfish_at_javadesktop.org>
Date: Wed, 13 May 2009 12:43:16 PDT

Hi all,

From the documentation (delegate="true")

(optional) If true, the web module follows the standard class loader delegation model and delegates to its parent class loader first before looking in the local class loader. You must set this to true for a web application that accesses EJB components or that acts as a web service client or endpoint.

Can someone explain why delegate needs to be true to:

1. accesses an EJB component.
2. act as a web service client.
3. act as a web service endpoint.

Thanks!
[Message sent by forum member 'mriem' (mriem)]

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