Should EJB instances set their references to null inside ejbRemove (for clean up)?
After ejbRemove() entity beans go in a ‘passive’ state, and just like in ejbPassivate, there is no reason to set their references to null, but it’s a good idea if they close all open connections. Session beans stop their existence after ejbRemove(), so they MUST close all open resources. The ejb instances will be garbage collected so there is no need to set their references to null, but if an open resource remains it may never be released.