Hi, I have study the EJB book saying that it should release resource in @predestroy method.
But I have a question that can the resource release in @remove method?
The @remove annotation is used only on Stateful session beans methods. After the method annotated with @remove returns, the instance is destroyed by the container. This is because with Stateful session beans every client gets its own instance and this way the performance is greatly improved. (Think in this scenario if every instance would need to wait a timeout to be destroyed)
SCJP 1.4, SCJD, OCE EJBD 6
Don't get me started about those stupid light bulbs.