InstanceService eiSvc = new InstanceServiceImpl();
BusinessProcessServiceImpl graphManager = new BusinessProcessServiceImpl();
TaskService taskService = new TaskServiceImpl();
TimerServiceImpl timerService = new TimerServiceImpl();
MessageProcessor impl = new MessageProcessor();
impl.setTaskService(taskService);
impl.setTimerService(timerService);
impl.setExecutionInstanceService(eiSvc);
impl.setTokenService(tokenService);
impl.setBusinessProcessService(graphManager);
QueueServiceImpl qs = new QueueServiceImpl(impl);
timerService.setQueueService(qs);
impl.setQueueService(qs);
/*
* now start the message pump for processing since we are all ready
*/