1 Reply Latest reply on Oct 13, 2006 2:50 AM by Helmuth Melcher

    Consumer Lifecycle?

    Helmuth Melcher Newbie

      Hi,
      im really sorry if this is some "newbie"-question, but after 2h+ of searching im pretty sure its not explained anywhere in the trails/faq/etc. (Maybe im just lacking some background knowledge, donno)

      Im using Message Driven POJO's as explained in this trail:
      http://trailblazer.demo.jboss.com/EJB3Trail/serviceobjects/mdpojo/

      I have figured out that "@PostConstruct" allows you to place init-code on a Consumer, and this works fine so far.

      But whats the "Destroy"-equivalent, to clean up?

      @PreDestroy
      and
      @Remove

      Both dont work.

      Thanks,
      Helmuth