0 Replies Latest reply on Jan 31, 2002 2:10 AM by filipdef

    executing method on ear deploy/undeploy

    filipdef

      Hi,

      Is there a way to execute a java class/method when a
      specific ear has been deployed/undeployed ?
      (e.g. "example.ear" loads some EJB's, but these things
      need to register themselves after loading, and
      unregister themselves after unloading).

      I suspect I should be able to do this either with some
      static code in the EJB (at least for the on-deploy) or
      with some kind of MBean (I don't really want a call
      interceptor, only an interceptor for deploy/undeploy of
      one specific ear), but I'm not quite sure what would work (best).

      Any pointers much appreciated!

      Thanks in advance,
      - Filip