The class path set in the class loader and the order in which the classes are searched when the class loader loads the classes is as follows:
- Connector class loader
The connector class loader loads the stand-alone RAR classes. This class loader sets the JAR files included in the individually deployed RAR file in the class path.
- J2EE container class loader
The J2EE container class loader is enabled when ejbserver.rmi.localinvocation.scope=all (using the local call optimization functionality) is specified. This class loader becomes the parent class loader of all the application class loaders and has the class paths of all the running application class loaders in its own class path.
- Application class loader
The application class loader loads the EJB-JAR, library JAR, and container-generated classes existing in the J2EE application. The sequence of the specified class path is as follows:
- JAR files included in the RAR that is included in the J2EE application
- EJB-JARs included in the J2EE application
- Library of the referencing method
- Library JAR included in the J2EE application
- EJB-JAR files of another application being referenced by the Naming Service switching functionality (when the reference destination application exists on the same J2EE server)