2 Replies Latest reply on Nov 11, 2009 10:49 AM by fermat

    Seam session from Remote

    fermat

      Hello,


      I have a seam application using several scopes. Now I want to access the application using RMI and some remote stateless beans. Therefore I first created a login-method which works good. During this method I set some session scoped variables and outject them. This works goods for my web-application but over RMI the other beans I use can not inject these variables. At the moment I guess that I am not working in a seam session. What do I have to do, to get this feature?


      bests


      Sascha

        • 1. Re: Seam session from Remote
          kapitanpetko

          In short, you can't. Remote methods do not run in the context of a web session, so they know nothing about it. If you need state, try with a stateful session bean. Be aware that Seam doesn't support remote interfaces, so you are basically on your own. Injection should work though.


          HTH

          • 2. Re: Seam session from Remote
            fermat

            That's not good... But is there any way to simulate a Session at least during one method call? Is there any way to manipulate the Seam Session Handling manually?


            bests


            Sascha