1 Reply Latest reply on Mar 21, 2003 7:07 AM by petertje

    Stateless Session Beans and Http sessions

    cbrese

      I'm starting a project where we're going to use Flash Remoting to talk the stateless session beans running in JBoss.

      The Flash Remoting implementation from Macromedia is basically just a servlet that can marshall java objects over http from a Flash client to an application server.

      What I need is to figure out is a way to get the Http session from my code in a Stateless Session Bean. Is this possible?

        • 1. Re: Stateless Session Beans and Http sessions

          > What I need is to figure out is a way to get the Http
          > session from my code in a Stateless Session Bean. Is
          > this possible?

          No.
          EJBs run inside an EJB container; they known nothing (well, hardly anything) about the client that is calling the bean.

          Why do you need access to the HttpSession in the bean? I'm not familiar with that flash stuff. Is not possible for you to hook into or extend the servlet?