Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

XML File Definitions (Documents Page)

 

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 NameRequired?Description
ttlYThe time to live for each invoker thread. Once this time is reached the thread is destroyed.
wait-millisYEach invoker thread will sleep for this amount of time before checking for jobs to run.
jobsYThe maximum number of jobs each invoker thread will run before being destroyed.
min-threadsYThe minimum number of invoker threads to keep around.
max-threadsYThe maximum number of invoker threads to create.
poll-enabledYWhen 'true' the scheduler will poll the database for scheduled jobs.
poll-db-millisYIf polling is enabled this defined how often the poller thread runs.

...