I've justed test it, remplacing my @PreDestroy annotation, I've got that messages :
2010-05-20 09:37:48,648 [INFO ] org.springframework.web.context.support.XmlWebApplicationContext - Closing Root WebApplicationContext: startup date [Thu May 20 09:36:59 CEST 2010]; root of context hierarchy
2010-05-20 09:37:48,648 [DEBUG] mypackage.internal.jbpm.ExtendedProcessEngine - ApplicationClosedEvent fired !
2010-05-20 09:37:48,648 [INFO ] mypackage.internal.jbpm.ExtendedProcessEngine - Terminating ProcessEngine !...2010-05-20 09:37:48,649 [INFO ] org.jbpm.pvm.internal.jobexecutor.DispatcherThread - inactive job dispatcher thread 'DispatcherThread' got interrupted
2010-05-20 09:37:48,649 [INFO ] org.jbpm.pvm.internal.jobexecutor.DispatcherThread - DispatcherThread leaves cyberspace
My "ExtendedProcessEngine" is only a wrapper implementing ProcessEngine and ApplicationListener
@Override
public void onApplicationEvent(ContextClosedEvent event) {
logger.info("Terminating ProcessEngine !...");
processEngine.close();
processEngine = null;
}
It doesn't help for reloading context :(
Any other idea ?