Jboss7中如何设置crossContext和enptySessionPath?
我正在尝试将一些应用程序的部署从 tomcat 6 迁移到 jboss-as 7。
这些项目已经实现了单点登录机制,为了工作,需要在tomcat context.xml 文件和 server.xml 中连接器配置中的emptySessionPath="true"。
如何在jboss7中模仿这些设置?我知道jboss使用修改后的tomcat作为servlet容器,但我一直找不到任何这些设置。
I am trying to migrate the deployment of some applications from tomcat 6 to jboss-as 7.
A single sign-on mechanism has been implemented for these projects, which, in order to work, needs to have crossContext="true" set in the tomcat context.xml file and emptySessionPath="true" in the connector configuration found within server.xml.
How can these settings be mimicked in jboss7? I know that jboss uses a modified tomcat as a servlet container, but I have been unable to find any of these settings.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
发现这个: http://community.jboss.org/message/617186
不确定它是否有效尽管...
Found this: http://community.jboss.org/message/617186
Not sure if it works though...
JBoss 7.1 支持的 Servlet 3.0 规范允许在 web.xml 中指定会话 cookie 路径。只需将此片段放入您想要共享其上下文的所有战争中即可:
Servlet 3.0 specification supported by JBoss 7.1 allows specification of session cookie path in web.xml. Just put this fragment to all of your wars whose context you want to be shared: