_server.setScheduler(scheduler);
_server.setBindingContext(new BindingContextImpl());
_server.setMessageExchangeContext(mexContext);
_server.setTransactionManager(_txm);
scheduler.setJobProcessor(_server);
store = new ProcessStoreImpl(null, null, "jpa", new OdeConfigProperties(new Properties(), ""), true);
// not needed: we do eclipcitly in doDeployment
// 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.setConfigProperties(new OdeConfigProperties(getConfigProperties(), ""));
// _server.registerBpelEventListener(new DebugBpelEventListener());
_server.init();
_server.start();
}