Using @ProcessApplication in a jar


#1

My current setting is following:
A.ear -> contains camunda-ejb-client-7.4.0.jar and also lib folder where i have analytics.jar and other .jar files which are NOT processes (this analytics jar have following dependencies in pom:

org.camunda.bpm camunda-engine org.camunda.bpm camunda-engine-cdi

So when i try to deploy following setting i get:

Class xxx.analytics.CamundaProcessApplication is annotated with @ProcessApplication but is neither a ServletProcessApplication nor an EJB Session Bean Component

It is working when i pack my dependencies (camunda-engine and camunda-engine-cdi) to analytics.EAR instead of analytics.JAR.

Is it possible to use @ProcessApplication in a jar?