title: Stateful EJB with extended persistence context to handle user session
body: <p>I'm using a CDI session scoped bean to hold user related information (His user entity bean, credential, etc). I have a save method for everytime a user changes his info (like email, password, etc).
  However, I could have a stateful session bean with extended persistence context to do so. If I do that, his user entity will become managed during his session and changes to his email etc would be synchronized without recreating persistence contexts etc.
  Is this a good idea? Should I have an extended persistence context open for so long? This also locks changes to the user for external beans right? What if I have an administrator trying to make changes to this user (it could happen).</p>