1 Reply Latest reply on Feb 28, 2008 11:17 PM by gavin.king

    Seam vs EJB confusion

    jbossindia

      I read the following in some post:


      Entity Bean and Stateful Session Bean have Conversation scope by default.


      When we say conversation scope then these are managed by Seam not EJB container?


      How can session bean have conversation scope?



      Also read the following in seam reference:


      Concurrent requests to session-scoped stateful session beans are always serialized by Seam. 


      It means if statful session bean is conversation scope then requests will not be serialized?





        • 1. Re: Seam vs EJB confusion
          gavin.king

          Kulvinder Singh wrote on Feb 28, 2008 11:48 AM:


          I read the following in some post:

          Entity Bean and Stateful Session Bean have Conversation scope by default.

          When we say conversation scope then these are managed by Seam not EJB container?


          They are managed by both Seam and the EJB container.



          How can session bean have conversation scope?


          Annotate it @Scope(SESSION), of course!



          Also read the following in seam reference:

          Concurrent requests to session-scoped stateful session beans are always serialized by Seam. 

          It means if statful session bean is conversation scope then requests will not be serialized?



          The whole HTTP requests are serialized in that case. Read that section of the documentation again.