1 Reply Latest reply on May 6, 2013 4:49 AM by nickarls

    Identifying the application deployment on server start up and actual deployment by the user

    vedanth

      Hi All,

       

               Am deploying a web application with a servlet context listener, which does database insertions on deployment and deletions on undeployment. After deploying the application if i restart the server the servlet context listener again tries to insert the records in database. But these insertions and deletions should be done only when the user deploys or undeploys the application and not on server start up or shutdown.

       

      Is there any way to identify :

      1. The application deployment on server start up and actual deployment of the application by user after start up.

      2. The application undeployment on server shutdown and actual undeployment of the application by user.

       

      Regards,

      Vedanth