1 Reply Latest reply on Feb 2, 2006 12:51 PM by gavin.king

    @Destroy / @Remove / @PreDestroy

    rdewell

      I'm confused about the interplay of these annotations on a SFSB.

      As I understand it, to get Seam to remove the bean when the context ends, I need to annotate:

      @Destroy and @Remove on a method.

      I need to capture expiration of that bean though. Where's the best place to "cleanup" the bean or capture expiration events? Should I do that in the same method as @Destroy / @Remove... or should I create a new method annotated with @PreDestroy?

      Thanks,

      Ryan