3 Replies Latest reply on Aug 23, 2007 2:07 AM by wise_guybg

    When to use SessionBeans and when Pojos?

    hexxter

      Hi,

      I'm trying to get into seam and by now I thing I'm starting to understand the JSF side code. Buts whats totally unclear to me:

      For actions and supporting code I have to use some sort of whats called in JSF BackingBeans. No I do understand that I have to (do I?) use @Stateful SB for beans which store data and @Stateless for beans which don't. What I don't understand is:

      When can I use Pojos? Only if I need @PersistenceContext injected? And whats going on at the server? Where is my code executed? Does it make any difference when running in a distributed environment?

      Thanks,

      Florian