We started with a session-per-request methodology, but given the complex object hierarchies we employ, the overhead of re-attaching all of the session objects resulted in a performance hit with thousands of users. After moving to the Long Hibernate sessions, we were still experiencing LIE's. After some extensive research, it seems some have placed the blame for this on myFaces, for serializing/deserializing the Hibernate objects, thus detaching the objects from their sessions. Is this a likely scenario, and if so, what can be done about it? Would changing JSF to save state on the server fix this? Does it have to do with the Backing beans containing references to the entities? Would an AOP Aspect be a valid way to re-attach these entities?
I realize this post doesn't include specifics, but I'm really just asking for confirmation of the issue between JSF backing beans, and Hibernate entities, and perhaps some recommendations.
|