Can an EJB handle (RMI remote reference) be stored in an HttpSession?

David Garcia

[Note: My HttpSessions are persistent (disk swap), so if the handle is not serializable I will have troubles when the HttpSession is restored. ]

Test result:
I have used the handle for locating local and remote EJB. I have no problem about storing the handle inside the HttpSession and swapping the HttpSession. However if some problem arise about the swap of the HttpSession, you may could keep the HttpSession in memory.

Test conditions:
BEA Weblogic 4.5.1 (uses EJB 1.0 and allow keep HttpSessions in memory). Windows NT 4.0

I'm a little surprised about the test since I keep in mind that handles could only be used for locating local EJB's not remote ones (wrong?).