store.registerListener(new ProcessStoreListener() {
public void onProcessStoreEvent(ProcessStoreEvent event) {
// bounce the process
_server.unregister(event.pid);
if (event.type != ProcessStoreEvent.Type.UNDEPLOYED) {
ProcessConfImpl conf = (ProcessConfImpl) store.getProcessConfiguration(event.pid);
// Test processes always run with in-mem DAOs
conf.setTransient(true);
_server.register(conf);
}
}
});
_server.registerBpelEventListener(new DebugBpelEventListener());