Managing webapp session data/controller flow for multiple tabs

后端 未结 4 995
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 07:57

I have a Java web application which stores some data in the session. The data in the session changes as the user interacts with the application (e.g. flow is managed by a co

4条回答
  •  失恋的感觉
    2020-11-30 08:14

    This is exactly what Seam was created to handle. In Seam there's a concept called a Conversation which basically does exactly what you are explaining. Conversations are basically are a way to divide the Session into many pieces that can expire at some timeout. You can look at the source code for org.jboss.seam.core.Manager class to see how it's actually implemented and get inspired ;)

提交回复
热议问题