I was going through the code given for the business delegate pattern example in EJBDesignPattern book in Pattern Code Listing chapter.
One point I could not understand where will the class member, namely remoteHandle, of the class ForumServicesDelegate be stored in between successive requests made by the client. The answer I can think of is to store the entire object (i.e., the instance of ForumServicesDelegate) in the session object. But in that case the session oject will really become heavy. Is there anyother solution for this ?
In the projects I previously worked on we used to directly store the handle for a stateful session bean in the session object. The handle being just a reference it was not consuming major memory. Of course, in that case we didn't use Business Delegate pattern. So the similar issue didn't arise.
Can anyone throw some light on this issue ?