I have a JSF-managed session-scopped bean. It is also a spring component so that I can inject some fields:
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import org.springframework.stereotype.Component;
@ManagedBean
@SessionScoped
@Component
public class EpgBean {...}
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.
Is it due to the spring @Component which would force the bean to be a singleton? What is a correct approach to this matter?