-
1. Re: Accessing a different conversation context
pmuir Oct 27, 2007 1:14 PM (in response to fabboco)I've never done this so don't quite know how it would work, but it looks like it should do. Grab a copy of the Seam source and step through and check that the conversation context is referencing the right conversation entry.
-
2. Re: Accessing a different conversation context
fabboco Oct 28, 2007 3:22 AM (in response to fabboco)Pete,
thank you for your advice.
I have two different scenarios (I have not been able to understand what is the difference yet) one works and the other doesn't.
Following the seam code I was able to show that the difference is the get(String) behavior of ServerConversationContext.
When I am able to get the right value, result is null forObject result = additions.get(name);
when I am not, result is not null.
What's happening ?
Can you give me any advice since my code causes this different behavior ?
Thank you again.
Fab. -
3. Re: Accessing a different conversation context
fabboco Oct 28, 2007 3:23 AM (in response to fabboco)Sorry,
I forgot: SEAM CR3.
Fab. -
4. Re: Accessing a different conversation context
pmuir Oct 28, 2007 6:23 AM (in response to fabboco)Post the two different scenarios.
-
5. Re: Accessing a different conversation context
fabboco Oct 28, 2007 6:51 AM (in response to fabboco)Pete,
scenarios belongs to a real application and they are too complex for the purpose.
As soon as I have time I have to build two simpler test case,
Meanwhile can you tell me what additions are, so that I can try to figure which is the problem ?
Thanks
Fab. -
6. Re: Accessing a different conversation context
pmuir Oct 28, 2007 7:17 AM (in response to fabboco)Additions is a map of objects added to the conversation context in this request.
-
7. Re: Accessing a different conversation context
pmuir Oct 28, 2007 7:22 AM (in response to fabboco)Flush the conversation before switching it - Contexts.getConversationContext().flush();
-
8. Re: Accessing a different conversation context
fabboco Nov 1, 2007 6:35 AM (in response to fabboco)Pete,
thank you very much.
Flushing seams to be the solution in all my scenarios.
Regards
Fab.