My application has a spring scheduled task running one time per day on JBoss wildfly 7.1. But occasionally the task inserts data into databases twice after a redeployment. It does not always happen. I am also sure that the task has been done when we deployed the application everytime. We have to restart the server which can solve the issue. It sounds like that JBoss does not release the old schedule task during the redeployment sometimes. But I cannot believe this. If it is true, when deploy any application in JBoss, we have to shut down all applications in that JBoss and restart the server. Could anyone give an explanation? Thanks,