0 Replies Latest reply on May 18, 2004 4:42 PM by n8chtschwaermer

    deploy->"initialization work" undeploy -> "clean up work"

    n8chtschwaermer Newbie

      Hey folks.
      I have a question.
      My application should do "initialization work" after deploy and "clean up work"
      after undeploy.

      To achieve this i can use a "empty" MBean, which does the "initialization work" (by constructor)
      and which add a Listener to EARDeployer to do the "clean up work" if the application gets undeployed.

      This works, but is probably not the smartest solution.
      If anybody could give me any ideas i would be grateful !