2 Replies Latest reply on Dec 25, 2012 6:58 AM by nickarls

    Use HttpSession in EJB

    michael_jboss

      How can i synchronize ejb beans and httpsession?

      I set object attribute Into HttpSession and me need that attribute get in ejb.

      How do it?

      Could you help me?

        • 1. Re: Use HttpSession in EJB
          jaikiran

          HTTPSession and EJBs are unrelated and don't depend on each other. As such, you'll have to design your application in such a way that you won't need access to HTTPSession in your EJBs.

          • 2. Re: Use HttpSession in EJB
            nickarls

            There is of course CDI in Java EE 6 what will give you scopes and lifecycle handling so that a @SessionScoped @Stateful EJB till be just that when it is @Injected in another component if that is what you're trying to achieve...