Sun GlassFish Enterprise Server v2.1.1 Developer's Guide

Optimizing Session Bean Performance

For stateful session beans, colocating the stateful beans with their clients so that the client and bean are executing in the same process address space improves performance.