I notice that there is a lot of overhead involved in creating a new session bean rocal or remote interface, and that XDoclet-generated Delegate classes allow for caching the remote interface rather than re-aqcuiring it on each request. This improves performance markedly. But I also notice that the generated Util class does not cache the local interface resulting from a home-interface create() call. If I do that, I get an even more significant performance enhancement, as I have many inter-session-bean and entity-to-session-bean calls in my system.
So, is it safe to cache these interfaces indefinitely? If so, are there any special concerns or tradeoffs involved?