Is there a acceptable way of passing sessions between two sessions?
We have 2 applications on a Websphere application server 7.0开发者_如何学运维. The need is to pass an session from one application to another.
Scenario: User in one application chooses to switch to another context (application), we want the new application to receive the session data that the user had in the earlier application.
Please note that the two applications reside on the same app server, same JVM as I understand it.
Websphere supports shared session context between wars in a same ear (see ibm-application-ext.xml) This is against the j2ee specifications and you are exposing yourself to vendor lock in. You could use a database as a common store for user based information.
精彩评论