Thanks, Marcelo!
My question is about that I need to run the following main to have the application working. When I experienced HornetQ I added the project to the server and it was added to the deploy folder.
I'd love (I don't know if it's a nonsense) to have the application starting (e.g. waiting for requests) on server startup.
public static final void main(String[] args) throws Exception {
startUp();
// load up the knowledge base
KnowledgeBase kbase = readKnowledgeBase();
StatefulKnowledgeSession ksession = JBPMHelper.newStatefulKnowledgeSession(kbase);
// start a new process instance
ksession.startProcess("com.sample.bpmn.hello");
System.out.println("Process started ...");
}