PDA

View Full Version : Objects in Conversation Scope Get Serialized?


curtney
Apr 10th, 2006, 06:01 PM
Quick question:
Are objects placed in conversation scope serialized when a flow is paused?

Curtney

Keith Donald
Apr 10th, 2006, 06:16 PM
Depends on the flow execution repository implementation. With a continuation-based repo, no.

Keith

curtney
Apr 10th, 2006, 07:07 PM
Good, I was hoping you would say that. :)

I have configured a continuation base repository factory.
I have several objects that I have placed in conversation scope. These objects have hibernate collections. However, upon deserialization the collections are loosing the hibernate session. This is old news when it comes to storing objects that contains hibernate collections in flow scope. However, it seems strange that this is also happening in conversation scope, since conversation scope is not serialized when the flow is paused. Am I missing something obvious?

I am hoping that I won't need something like 'OpenSessionInFlowListener', although I have managed to get the code posted on JIRA up and running, with some modifications.