myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Struberg <strub...@yahoo.de>
Subject Re: Conversation Scope in JSF 2.0
Date Wed, 16 May 2012 08:47:32 GMT
The context for handling all CODI @ConversationScoped beans ALREADY get stored in a @SessionScoped
bean. Thus it will end up in the Session somehow. But this is impl and situation depending!

In OWB we do NOT store @SessionScoped beans directly in the Session, because the http session
is _damn_ slow. Instead we store it in an internal map, and only store it over if there is
a request for replicating the Session. In OWB we call this mechanism 'FailOver'.



LieGrue,
strub



----- Original Message -----
> From: tclam <tclam@hkeaa.edu.hk>
> To: users@myfaces.apache.org
> Cc: 
> Sent: Wednesday, May 16, 2012 10:26 AM
> Subject: Re: Conversation Scope in JSF 2.0
> 
> 
> Hi struberg,
> 
> Do you mean that all the @ConversationScoped bean is already stored in
> @SessionScoped bean in CDI specification?
> 
> Or 
> 
> Do you mean that I have to wrap a @ConversationScoped bean with another
> @SessionScoped bean in my own coding?
> 
> 
> 
> 
> struberg wrote:
>> 
>>  Hi!
>> 
>>  All the CDI @ConversationScoped gets stored in a @SessionScoped bean
>>  managed by the CDI container. Finally this will somewhen end up in the
>>  session (the 'when' is implementation specific).
>> 
>>  LieGrue,
>>  strub
>> 
>> 
>> 
>>  ----- Original Message -----
>>>  From: tclam <tclam@hkeaa.edu.hk>
>>>  To: users@myfaces.apache.org
>>>  Cc: 
>>>  Sent: Wednesday, May 16, 2012 9:23 AM
>>>  Subject: Re: Conversation Scope in JSF 2.0
>>> 
>>> 
>>>  Thank you. 
>>>  Have you test the conversation during session replication?
>>> 
>>>  Anyone try MyFaces Orchestra?
>>> 
>>> 
>>> 
>>>  Thomas Andraschko-2 wrote:
>>>> 
>>>>   I use CODI in an clustered environemnt, no problems till now :)
>>>> 
>>>>   2012/5/16 tclam <tclam@hkeaa.edu.hk>
>>>> 
>>>>> 
>>>>>   I am trying to implement conversation scope in backing bean of 
> JSF for
>>>>>   our
>>>>>   application. At first, I am trying to use MyFaces Orchestra. 
> It seems 
>>>  to
>>>>>   work well. However, I am concerning the case when the 
> application
>>>>>   deployed
>>>>>   in cluster environment and during session replication. I 
> don't know 
>>>  if
>>>>>   MyFaces CODI with OpenWebBean is a better choice.
>>>>> 
>>>>>   I have two questions to ask:
>>>>> 
>>>>> 
>>>>>   (1) Does MyFaces Orchestra works well in cluster environment? 
> Will the
>>>>>   conversation maintains after session replication?
>>>>> 
>>>>> 
>>>>>   (2) Does MyFaces CODI have any issues when deployed in cluster
>>>>>   environment?
>>>>>   I cannot found any information about this in its document.
>>>>>   --
>>>>>   View this message in context:
>>>>> 
>>> 
> http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33855502.html
>>>>>   Sent from the MyFaces - Users mailing list archive at 
> Nabble.com.
>>>>> 
>>>>> 
>>>> 
>>>> 
>>> 
>>>  -- 
>>>  View this message in context: 
>>> 
> http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33856260.html
>>>  Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>> 
>> 
>> 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33856469.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> 

Mime
View raw message