Class Loader


Running the Sample

This is a standalone Sample which requires no server interaction and needs no configuration.

Running the Sample

The Class Loader Sample is a simple command line application. Run this Sample using the supplied batch file.

To run the Class Loader Sample using the supplied batch file, complete the following steps:

  1. Open a command prompt.
  2. Change the current working directory to:
  3. Run classLoader.
  4. When the application starts, the application output should look like the following:

    --------------------------------------------------------------
    Running ClassLoaderClientMain from the J2EEAppClientClassLoader.ear file
    --------------------------------------------------------------
    
    IBM WebSphere Application Server, Release 8.0
    Java EE Application Client Tool
    Copyright IBM Corp., 1997-2009
    
    WSCL0012I: Processing command line arguments.
    WSCL0013I: Initializing the Java EE Application Client Environment.
    Debugging is set to false
    Loading the Security Configuration...
    WSCL0035I: Initialization of the Java EE Application Client Environment has completed.
    WSCL0014I: Invoking the Application Client class com.ibm.websphere.samples.j2eeappclients.classloader.ClassLoaderClientMain
    Beginning Test
    Attempting to load ClassLoaderClientJarTest
      Loaded: class com.ibm.websphere.samples.j2eeappclients.classloader.ClassLoaderClientJarTest
    Attempting to load ClassLoaderClientCommonJarTest
      Loaded: class com.ibm.websphere.samples.j2eeappclients.classloader.ClassLoaderClientCommonJarTest
    Attempting to load ClassLoaderClientEARTest
      Loaded: class com.ibm.websphere.samples.j2eeappclients.classloader.ClassLoaderClientEARTest
    Attempting to load ClassLoaderLocalTest
      Loaded: class com.ibm.websphere.samples.j2eeappclients.classloader.ClassLoaderLocalTest