Configuring Background Processing

You can configure the background processing feature to automatically resubmit jobs that were in process (in the Submitted or Running states) when a system crash occurs.

If a job did not complete because of an error, the status for that Job shows as Failure. These jobs are not restarted after a system crash, however, the user can manually restart the job. See Background Jobs Page for details.

  1. Open the web.xml file for editing.

  2. Add these lines:

    <servlet id="StartUpServlet_001"
      <servlet-name>StartupServlet</servlet-name>
      <servlet-class>com.matrixone.apps.domain.util.StartupServlet</servlet-class>
      <load-on-startup>3</load-onstartup>
    </servlet>

  3. For each server in your system, create a startup script that includes this command:

    set JAVA_OPTS=%JAVA_OPTS% -DServerIdentifier=<Unique Identifier of Server>

    Replace <Unique Identifier of Server> with the name of the server or any unique number, such as a sequence number. This number is used by ENOVIA Business Process Services to determine which jobs run on which aplication server.

    Replace ServerIdentifier with the value entered for emxFramework.BackgroundProcess.ServerUniqueIdentifier in emxSystem.properties. See emxSystem.properties.

    All startup files use the same ServerIdentifier and a unique <Unique Identifier of Server> value.

    You need a unique startup file for each server in your system.