...
Introduction
...
This document describes the configuration of the Service Engine. It starts with an introduction to of general ideas and then goes through each part of the serviceengine.xml file and explains the available elements and their usage. The serviceengine.xml file used for the OFBiz applications has examples of a number of different options and is located in
ofbiz/commonapp/etc/serviceengine.xml
.
The configuration of the Service Engine is done through a simple XML file called serviceengine.xml
that must exist somewhere on the classpath.
Authorization
...
The authorization
tag is used to configure the service called for service authentication. This tag has a single required attribute service-name
; the value of this attribute should be the name of the service to use for authorization. By default this is defined to use the general OFBiz userLogin
service.
Thread Pool
...
The job scheduler is used for asynchronous and scheduled jobs/services. It contains a poller thread and several invoker threads. The thread-pool
tag is used to configure how each thread operates. The following attributes are available:
Attribute Name | Required? | Description |
---|---|---|
ttl | Y | The time to live for each invoker thread. Once this time is reached the thread is destroyed. |
wait-millis | Y | Each invoker thread will sleep for this amount of time before checking for jobs to run. |
jobs | Y | The maximum number of jobs each invoker thread will run before being destroyed. |
min-threads | Y | The minimum number of invoker threads to keep around. |
max-threads | Y | The maximum number of invoker threads to create. |
poll-enabled | Y | When 'true' the scheduler will poll the database for scheduled jobs. |
poll-db-millis | Y | If polling is enabled this defined how often the poller thread runs. |
...