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
The @Destroy method would be fine. Unless you want to catch *any* @Remove call, in which case @PreDestroy would be better.