title: JSF/Spring Session is shared between users
body: <p>I have a JSF-managed session-scopped bean. It is also a spring component so that I can inject some fields:</p>
  
  <pre><code>import javax.faces.bean.ManagedBean;
  import javax.faces.bean.SessionScoped;
  import org.springframework.stereotype.Component;
  
  @ManagedBean
  @SessionScoped
  @Component
  public class EpgBean {...}
  </code></pre>
  
  <p>The problem is that the session is shared between users! If a user does some stuff and another user from another computer connects, he sees the SessionScoped data of the other user.</p>
  
  <p>Is it due to the spring @Component which would force the bean to be a singleton? What is a correct approach to this matter?</p>