2 Replies Latest reply on Mar 9, 2010 8:42 AM by pichmeister

    Can concurrent requests access the same session scoped bean at the same time?

    pichmeister

      I have a question regarding concurrent ajax request and session scoped beans. For a simple example I have:


      2 beans on request scope (Bean1 and Bean2)
      1 bean on session scope (Bean3)


      Bean3 is injected into Bean1 and Bean2. Say the user fires an ajax request on an action on Bean1, and that request takes about 10-20 seconds to complete. During that time the fires another ajax request from the same webpage to Bean2. What will happen? Will Bean2 be able to execute and finish even though it depends on Bean3, which is injected in Bean1? Or will it have to wait until Bean1 finishes?


      Best regards


      Pich