users@glassfish.java.net

Re: Glassfish classloaders

From: <glassfish_at_javadesktop.org>
Date: Mon, 25 Feb 2008 08:09:03 PST

I agree that the last sentence in that paragraph seem to suggest that the delegate must be set to true to access an EJB component from a web. It says: "You *must* set this to true for a web application that accesses EJB components or that acts as a web service client or endpoint. "

When delegate is set to false, the delegation model is simply reversed. When set to false, the web class loader first attempts to load the class before delegating to its parent class loader. As long as the interfaces are not copied in both war and jar, it is safe to use delegate=false (and things should work).

The documentation needs to be changed.

Thanks,
[Message sent by forum member 'mk111283' (mk111283)]

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