Dear list, I would like to combine servlet and myfaces in an application.
In Myfaces, if a user logs in, a session is opened. A managed bean for the visual stuff and a managed bean for the model are started in this context (registered with session scope in faces-config). The servlet should now access the instances of the visual and model managed beans associated with the session (user) and generated different jpeg-images, depending on the state of the model and visual (e.g. locale, access rights,...). I found this example code, but I don't understand the FactoryFinder stuff http://www.mail-archive.com/[email protected]/msg21786.html Any good references to solve the problem? Is the FactoryFinder the right solution? Another problem associated with this, is how the visual and model managed bean can have access to each other (reference) within this session scope. I found some example like this, but I doubt that this is working correctly if multiple sessions are open (from same and different users): static protected MainScreenView self = null; public MainScreenView() { self = this; } public static MainScreenView getInstance() { return self; } I'm using realm stuff in web.xml Is there a way to the the different instances running, and the scope their are associated to? regards Dani

