This example demonstrates how to deploy a simple servlet process application.
- Build it with Maven.
- Deploy it to a
camunda-bpm-platform
distro of your choice (for WildFly, use version 26 or below, install as described here). - Watch out for this console log:
Service Task 'Example ServiceTask' is invoked!
If you would like to deploy this on a Jakarta EE 9+ server like WildFly 31 and beyond, perform the following steps:
- Replace the
javax.servlet-api
dependency with a Jakarta equivalent, i.e.jakarta.servlet-api
. - Replace all occurrences of
javax.servlet
in the code withjakarta.servlet
, e.g. inExampleProcessApplication
. - Repalce all occurrences of
org.camunda.bpm.application.impl.ServletProcessApplication
withorg.camunda.bpm.application.impl.JakartaServletProcessApplication
, e.g. inExampleProcessApplication
. - Build and deploy as outlined above.