IBM WebSphere Application Server下使用URL Rewrting进行Session Tracking的实现
来源:互联网 发布:蚁群算法解决tsp问题 编辑:程序博客网 时间:2024/05/22 13:12
新接手的一个应用程序有两个访问接口, 一个是基本的Web接口供使用浏览器的用户访问, 另一个则是基于servlet的B2B接口供业务伙伴使用应用程序访问。 业务需求要求对两个接口都要进行Session Tracking、 对于Web接口,我们使用cookie进行Session Tracking, 而在B2B接口上, 因为业务伙伴端的应用程序不支持cookie, 我们需要使用URL rewriting。
在使用URL rewriting时, 客户端必须在请求URL中包括jsessionid。在目前的实现中,当B2B客户端第一次访问应用程序时, 应用程序会在响应中包含jsessionid供B2B客户端在后续的请求中使用。
在IBM WAS中实现 URL rewriting包含两部分:
首先, 在应用程序的session管理中,选择"Enable URL rewrting". 在应用程序同时支持cookie和URL rewriting的情况下, WAS会检测客户端是否支持cookie, 如果支持cookie,则使用cookie进行Session Tracking。
其次,应用程序必须在响应输出中向客户端提供jsessionid, 虽然HttpSession接口中提供了getId方法来获取当前session的标识符, 当该标识符只是jsessionid的一个组成部分。 要获取完整的jsessionid, 我使用response.encodeURL方法来生成一个包含jsessionid的URL, 例如...;jsessionid=0000qA9CUpmesNP-MLxR3KoXeaM:-1, 然后使用字符串函数从中获取jsessionid。
- IBM WebSphere Application Server下使用URL Rewrting进行Session Tracking的实现
- IBM WebSphere Application Server
- IBM WebSphere Application Server (WAS)
- 在 Eclipse 中结合 IBM WebSphere Application Server 使用
- IBM WebSphere 系列产品和 BEA Tuxedo Server 的集成方案,第 1 部分: 使用 XMLink Wrapper 简化 IBM WebSphere Application Server 客户端到 Bea Tuxedo Server
- IBM WebSphere 开发者技术期刊: 开发用于 WebSphere Application Server 的 Hibernate 应用程序(转自IBM)
- 关于 IBM WebSphere Application Server 产品家族的问题集锦
- IBM WebSphere 开发者技术期刊: 将 Spring 和 Hibernate 与 WebSphere Application Server 一起使用
- WebSphere Application Server 的 SSL 使用
- IBM WebSphere 开发者技术期刊: 开发用于 WebSphere Application Server 的 Hibernate 应用程序
- IBM WebSphere 开发者技术期刊: WebSphere Application Server V6 的系统管理
- IBM - Fix list for IBM WebSphere Application Server V6_1
- Linux下的IBM Websphere MQ Server安装测试文档
- 利用 ANT 实现自动化部署管理 WebSphere Application Server 5.x 下的应用
- 如何实现WebSphere Application Server 6集群环境下的定时服务
- 利用 IBM Tivoli Directory Server V5.2 实现 WebSphere Application Server V6.0.x 的全局安全性并保护 WAS 管理控制台
- 基于 SAML 2.0 的 WebSphere Application Server SSO 实现
- IBM WebSphere Application Server Network Deployment 6集群简单介绍
- poj 1042 Gone Fishing(DP)
- NetBeans 7.1创建项目时为啥没有了“Create Java Desktop Application"选项
- hdu 1495 Anniversary party __树形DP
- 最小覆盖子串
- Bochs VMX enable and support
- IBM WebSphere Application Server下使用URL Rewrting进行Session Tracking的实现
- HDOJ-2232 误打误撞..构造矩阵..
- Android中的Audio播放:音量和远程播放控制
- 聊天室
- oracle 创建用户
- 【Visual C++】游戏开发笔记十四 游戏画面绘图(四) 华丽的CImage类
- Android 配置文件下载不了
- noise variance and power of the Band-Limited White Noise in Simulink
- 我的性格分析和对未来职业的规划