Hi all,

I'm looking for the best way to clear data from previous session upon logout 
using Crux. I have my session data within a bean titled ApplicationModel.

My goal is to "reset" ApplicationModel upon logout so that it is fresh for the 
next login.

I've tried dispatching the BeanEvent.REMOVE_BEAN and BeanEvent.ADD_BEAN events. 
When doing so, the bean properties are reset (source, type, typeDescriptor, 
initialized, etc), but any custom data within always remains upon dispatching 
ADD_BEAN. When looking at the BeanProvider through the debugger while these 
actions take place, it doesn't appear that the bean is actually fully removed?

For example, if my model contains an ArrayList that is filled by a RemoteObject 
call, it still contains the same data after dispatching both REMOVE_BEAN and 
ADD_BEAN.

Is it possible to re-instantiate a bean to remove all underlying data? Or, do I 
have to manually wipe all data through the [PreDestroy] annotation?

What am I missing, or better yet, what am I misunderstanding?

Thank you,

Brian

Reply via email to