users@glassfish.java.net

Re: Glassfish classloaders

From: <glassfish_at_javadesktop.org>
Date: Fri, 22 Feb 2008 00:19:22 PST

And the deployment guide states the following regarding the values of the delegate attribute in the class-loader element:
---------------------------------------------------------------------------------------------------------------------
(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.

If false, the web module follows the delegation model specified in the Servlet
specification and looks in its class loader before looking in the parent class
loader. It’s safe to set this to false only for a web module that does not
interact with any other modules.
---------------------------------------------------------------------------------------------------------------------

This kind of indicates that a webapp module can not use ejbs from an ejb module when configured to follow the servlet spec?!? Very weird IMO.
[Message sent by forum member 'philross' (philross)]

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