Access session of another web application

后端 未结 3 1028
生来不讨喜
生来不讨喜 2021-01-05 09:32

Is it possible to configure two separate web apps (WAR) in a J2EE application (EAR) to access a shared session context?

Further info:

I ended up creating a s

3条回答
  •  庸人自扰
    2021-01-05 09:49

    Not directly. Most containers put each WAR in a separate classloader with the EAR classloader as their parent. Each app's sessions are separate. You can put something provided by the parent EAR in each session. If you need them to share something, make it a EAR function.

提交回复
热议问题