Follow these steps to activate this feature:
- Create a file called sessionshare.xml file under the
WebSphere-Root/properties directory.
- Add the following tags in the sessionshare.xml file:
<sessionsharing>
<EnterpriseAppnames> (Add Enterprise Application Display Names
separated by commas)
</EnterpriseAppnames>
</sessionsharing>
- Restart the Application Server. The Session Manager reads the
sessionshare.xml file by default and enables the session sharing feature
for the enterprise applications listed there.
Note: Nothing additional needs to be done to enable this feature
other than adding sessionshare.xml file and listing the names of the
enterprise applications in it.
To use this service, all the Web modules in the enterprise application
must be installed on the same Application Server. In configurations where
multiple Web modules are installed on different Application Servers,
applications might be able to share the session data across Web modules
using persistent sessions. However, session data integrity is lost when
concurrent access to a session is made by different Web modules. This also
severely restricts usage of some SessionManger features like
TIME_BASED_WRITES for write frequency.
|