Starting and stopping JOnAS

If JOnAS has been properly installed and your environment variables correctly defined as described in the section called Configuring JOnAS in the chapter called Configuring your environment, you can start JOnAS with the EJBServer. JOnAS is usually started as a background as follows:

A name is assigned to each JOnAS server in the jonas.properties file (see the section called JOnAS configuration files). The default name for a JOnAS server is jonas. To stop a JOnAS server, you can use the JonasAdmin tool. The following command stops the JOnAS server named jonas (default):

JonasAdmin -s

To stop a JOnAS server with a user defined name like myEJBserver, use:

JonasAdmin -n myEJBserver -s

Note

If the registry was collocated with the JOnAS server, halting the server also terminates the registry. However, if the registry has been launched separately, it is up to you to stop it if needed.