I have to implement a Singleton class in JSF which reads a file, parses it and outputs another file. My question is, does it really make sense to create a Singleton class when there is the ManagedBean
? As per my understanding of JSF, the ManagedBean itself is a Singleton class.
If I can indeed create a Singleton class, how does can I use with the JSF code since it always interacts with the ManagedBean?