Originally posted by sid sree:
Does this imply that in certain situations the postActivate methods will be invoked and then the @Remove method will be called.
Methods annotated with the @Remove annotation are business methods. As per the ejb core specification, the Container must activate a passivated bean before running any business method on that bean. That's why @PostActivate is called before the @Remove method.
A @Remove method is not used exclusively for indicating that the bean can be removed. It may perform all the business logic you want.
[ September 24, 2008: Message edited by: Sergio Tridente ]