1 Reply Latest reply on Nov 21, 2006 10:28 AM by weston.price

    Saving state between calls

    xmaniac

      I'm facing a problem with SFSB. I know they're not shared between clients and that they are instantiated with each lookup. But I can't find how to store the reference to the bean between calls.

      The app is composed of a web layer (managed by Spring MVC) and an integration layer (EJB3). Should I use the HTTPSession here?

        • 1. Re: Saving state between calls
          weston.price

          Yes, this is a 'perfect' use of HttpSession. Note, I would include a SessionLifecyle handler thing (or whatever it is in the Web world) to make sure that your SFSB's are removed on logout or session expiration.