Hi!
> -----Original Message-----
> From: Carl Howarth [mailto:carl.howa...@dlapiper.com]
> Sent: Wednesday, February 11, 2009 11:56 AM

>   <bean name="searchParametersBean"
> class="com.xxx.SearchParametersBean"
> scope="conversation.access">
>     <property name="serviceBean" ref="serviceBean" />
>     <property name="searchResultsBean" ref="searchResultsBean" />
>   </bean>
> 
>   <bean name="searchResultsBean" class="com.xxx.SearchResultsBean"
> scope="conversation.access"/>
> 
> Before orchestra, all collections were EAGERly fetched and the results
> set
> was kept alive in the search results bean using a <t:saveState /> tag.

Do you still use t:saveState too? Just in case, this should not be required .. 
nor used as then the entity is detached.
Also, when passing back the result, just pass back the primary key and reload 
the entity from the result bean. An entity from another conversation is 
detached once the conversation is invalidated/not accessed anymore, thus reload 
the entity in the target conversation to have it associated with the right 
EntityManager/PersistenceContext.

Ciao,
Mario

Reply via email to