Class loading

Why and when to perform this task

Steps for this task

  1. Read about class loaders. The article "Class loading: Resources for learning" points to additional sources.
  2. If necessary, migrate class-loader Module Visibility Mode settings for Version 4.0.x applications to Version 5.x application or WAR class-loader policies.
  3. If an installed application module uses a resource, create a resource provider that specifies the directory name of the resource drivers.
    Do not specify the resource .jar file names. All .jar files in the specified directory are added into the class path of the WebSphere Application Server extensions class loader.
    If a resource driver requires a native library (.DLL or .so file), specify the name of the directory containing the library in the native path of the resource configuration. Directories specified in the native path must not contain .jar or .zip files because these files also are added to the class path of the extensions class loader.
  4. Configure class loaders of an application server for the run-time environment.
    1. On the settings page for an application server, click Classloader. On the Classloader page, click New.
    2. On the settings page for a class loader, specify the class-loader mode. PARENT_FIRST causes the class loader to delegate the loading of classes to its parent class loader before attempting to load the class from its local classpath. PARENT_LAST causes the class loader to attempt to load classes from its local class path before delegating the class loading to its parent. Then, click OK.

Related concepts
Class loaders
Related reference
Class loader collection
Class loading: Resources for learning



Searchable topic ID:   trun_classload
Last updated: Jun 21, 2007 4:12:58 PM CDT    WebSphere Application Server Express, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.exp.doc/info/exp/ae/trun_classload.html

Library | Support | Terms of Use | Feedback