Loading and unloading Beans

There are several ways to lad and unload beans in JOnAS. You have to be careful that the CLASSPATH used to start the EJB Server must allow the access to your beans classes. There is no way to dynamically update the CLASSPATH after JOnAS has been started.

Loading beans using jonas.properties

You can statically define the beans you want to load at JOnAS startup in the jonas.properties file. Here are some examples:

Loading beans using JonasAdmin

JOnAS provides a command-line console that allows you to perform many administration tasks such as dynamically loading beans. Here is how to load beans with JonasAdmin:

A complete description of JonasAdmin can be found in JOnAS Tools documentation.

Unloading beans

Beans can be unloaded either by stopping JOnAS or using JonasAdmin. Here is how to unload beans with JonasAdmin: