Sun GlassFish Communications Server 1.5 Performance Tuning Guide

Cache Bean-Specific Resources

Use the setMessageDrivenContext() or ejbCreate() method to cache bean specific resources, and release those resources from the ejbRemove() method.