Hi Alejandro,
If you want to prevent close a shared processEngine, we could igore the Configuration.getProcessEngine(), and let ServletContextListener to maintain the lifecycle of the processEngine. Maybe put the processEngine into the ServletContex scope of console webapp is a solution to solve that.
I think this is easier for people to understand and use.