Hi all,

I'm facing the following issue:

I have a @SessionState object for a custom type.

As far as I understand that would be handled individually for each "user
session", but I am seeing that the value is shared across all my user
sessions... It shouldn't be possible, in fact, if it works like that we
couldn't implement a shopping cart with this mechanism.... and I had a
shopping cart working fine in my application!

Do you imagine what could be wrong to get this behaiviour? I cant imagine
how implement a cross-SessionState without external persistence...

Here is my code:

public class CalificadosMessagesServiceImpl implements
CalificadosMessagesService {

@SessionState(create=true)
private CalificadosMessagesBag messagesBag;
...
...

@Override
public List<CalificadosMessage> getSessoinMessages() {
return this.messagesBag.getMessages();
}

@Override
public void recordSessionMessage(CalificadosMessage message) {
this.messagesBag.addMessage(message);
}
...
...
}

All the logged users (from different browsers), get the same messages!

Am I loosing something obvious?


Regards,
Matias.

Reply via email to