Overridding j2ee platform classes

Hi,

I'd just like to get clarification on one thing - if a J2EE module archive contains packages which are duplicates of those provided by the J2EE server (for example the JAXP javax.xml.* packages), which classes should be loaded at runtime? I'm presuming the J2EE server's classes get precidence for security reasons but I can't find anything in the specs...

cheers,

John.

[411 byte] By [mroshea] at [2007-9-26 6:47:42]
# 1
The generic answer would be that it depends on the classpath setting. The class that is encountered first in the classpath is consumed.
neville_sequeira at 2007-7-1 16:12:59 > top of Java-index,Other Topics,Patterns & OO Design...
# 2

Except of course, most application servers don't rely exclusivly on the system CLASSPATH - most use custom class loaders to load EJB/Servlet classes at runtime from some other location.

I guess the question is, do the J2EE server's built in classes (from the CLASSPATH) override classes packaged in J2EE applications if duplicates exist in the J2EE applications?

John.

mroshea at 2007-7-1 16:12:59 > top of Java-index,Other Topics,Patterns & OO Design...