Administration Console Online Help

Previous Next Open TOC in new window
Content starts here

Use custom classes to configure servers

You can create custom Java classes that extend server features or that perform some task when a server instance starts or shuts down. These startup classes or shutdown classes are loaded by the system class loader and therefore are available to all resources on a server instance even if the resources are managed by different containers. For example, EJBs and JMX clients can access startup or shutdown classes even though their containers use their own, higher level class loaders.

Because these are system-level classes, you must place them on the server's classpath. If want to make custom classes available to multiple applications but do not need the classes to be available at the system level, consider deploying them as application startup classes.

To configure a server instance to use a startup or shutdown class, complete the following tasks:

  1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).
  2. Configure startup classes or Configure shutdown classes.
  3. Deploy startup and shutdown classes.
  4. Add startup and shutdown classes to the classpath.
  5. To activate these changes, in the Change Center of the Administration Console, click Activate Changes.
    Not all changes take effect immediately—some require a restart (see Use the Change Center).

Related Tasks

Back to Top