问题描述
集成项目HT实施过程中碰到这样的问题,本次集成是把两个不同的应用集成到同一个页面框架下,部署方式为:
同一个Server ServerName = Server01,同一个Weblogic,分别建立两个Domain,Domain01(port-7001)和Domain02(port-7002),将应用App1部署在Domain01,将应用App2部署在Domain02,同时启动这两个Domain,如果完全是默认配置,单独访问两个应用是没有问题的,但是在同一个客户端如果访问App1之后再访问APP2会发现App1的Session丢失。
问题分析
客户端在访问App1时,Domain01会在该客户端保留一个名为 JSessionID的Cookie,记录了Domain01的信息,JSessionID为Weblogic cookie-name的默认值,当同一个客户端访问App2时,该客户端Cookie中JSessionID的值被Domain02刷新,此时如果在之前已经打开的IE中继续访问App1会发现Session丢失(JSessionID已经被Domain02刷新!)。
解决方案
第一种方案
在App1或者App2的weblogic.xml文件添加如下属性
session-descriptor
cookie-name AnotherSESSIONID cookie-name
session-descriptor
将 的值更改为不同于默认值就可以
如果不添加这个,那么客户端的COOKIE中保存的SESSION ID的对象名字是JSESSIONID,来自同一个SERVER上面的应用可能会造成这个SESSION ID的丢失,因为只要是WEBLOGIC产生的SESSION ID都是保存在这个名字的COOKIE中,这段配置就是把应用中的这个名字换成我们私有的,避免和其它域中的应用产生的JSESSIONID冲突。
第二种方案
访问App1时用IP来访问,访问App2时用域名来访问。
特别注意
如果应用程序部署为Cluster的模式,将无法设定,否则部署时发生错误。
分享到:
相关推荐
BEA WebLogic Server 开发WebLogic Server 应用.doc
64-weblogic server 安装 linux,64-weblogic server 安装 linux
第十一章 使用 WebLogic Server JavaMail 连接 Internet 邮件 第十二章 管理 WebLogic Server 8.1 第十三章 WebLogic Server 8.1 应用程序安全 第十四章 设计产品部署 第十五章 Web 拍卖设计目标 第十六章 WebLogic ...
关于weblogic server10的文章
WebLogic在UNIX下搭建domain
WebLogic_Server监控,介绍了如何对weblogic server进行监控
This preface describes the document accessibility features and conventions used in this guide—Understanding Domain Configuration for Oracle WebLogic Server.
将应用部署在weblogic中于axis2冲突的问题及解决方案
Oracle Weblogic Server 11gR1 PS2: Administration Essentials
实战集锦_WebLogic Server Deployment部署问题故障排除总结
BEA Weblogic Server宝典1,这个是中译本,扫描版
Oracle WebLogic Server 11g下载 Oracle WebLogic Server 10.3.1 包括两个文件: oepe11_ccjk_wls1031_linux32.bin oepe11_wls1031.exe
WebLogic_Server安装和配置
本书是WebLogic开发人员的权威参考手册,书中深入探讨了WebLogic Server所提供的功能,并列举了一些最佳开发实践。本书全面介绍了WebLogic在J2EE应用程序的各个方面所完成的任务:从使用servlet、JSP和EJB,到管理...
Oracle WebLogic Server 10g R3: Troubleshooting Methodologies Duration: 3 Days What you will learn This course teaches the steps to identify the symptoms and causes of the issues, the method of ...
本文档整理了linux环境下weblogic新建domain的详细命令操作。
Linux下新建Weblogic Domain域详解
Oracle WebLogic Server 11gR1下载 Oracle WebLogic Server 10.3.6 包括两个文件: oepe-wls-indigo-installer-11.1.1.8.0.201110211138-10.3.6-win32-weblogic.exe wls1036_generic.jar
Oracle 公司的Oracle WebLogic Server 的培训ppt