2.4.20. wc service configuration

The wc service allows to clean up periodically the work directory of the JOnAS server. This service don't need to be defined in the list of JOnAS services as it is automatically started when JOnAS is in development mode.

During the deployment process of an application, a specific working directory is created and associated to the application. After a defined time, the clean task tries to delete working directories of applications which have been undeployed. Note that the clean task is already executed at startup of the JOnAS server.

Here is the part of jonas.properties concerning the wc service:

###################### JOnAS WorkCleaner service configuration
#
#  Set the name of the implementation class of the wc service
jonas.service.wc.class    org.ow2.jonas.workcleaner.internal.JOnASWorkCleanerService

#  Set the clean period in seconds
jonas.service.wc.period   300                                     1

1

Define the period between two executions of the clean task (in seconds)