2.4.22. wm service configuration

The wm service provides a J2CA WorkManager implementation. This service don't need to be defined in the list of JOnAS services as it is automatically started when required.

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

###################### JOnAS WorkManager service configuration
#
#  Set the name of the implementation class of the wm service
jonas.service.wm.class    org.ow2.jonas.workmanager.internal.JOnASWorkManagerService

#  Set the size of the worker thread pool
jonas.service.wm.minworkthreads   3                               1

#  Set the maximun size of the worker thread pool
jonas.service.wm.maxworkthreads   80                              2

#  Set the max # of seconds that a thread will wait for work
#  This is used to shrink the worker thread pool back to minimum
jonas.service.wm.threadwaittimeout 60                             3

1

Defines the minimum size of the Thread pool

2

Defines the maximum size of the Thread pool

3

Defines the maximum time (in seconds) that a worker Thread should wait before execution

The wm service is used, for example, in the resource service (J2CA 1.5 implementation) in order to provide a javax.resource.spi.work.WorkManager instance for deployed resource adapters (like JMS, ...).