This is a question of preferance. Your way the task is marked completed and in my way it is marked canceled. In this scenario both are o. Take what ever you like more. Just don't forget to replace it in ActiveMqSchedulerManagementJobProcessor as well.