Flex portlet 调用 Web 服务
Flex portlet 正在调用 Web 服务,我正在拦截调用以使用 XFire AbstractHandler 方法实现来检查会话凭据。但我没有获得用于登录应用程序的相同 httpsession 值。我也使用 TCPmon 拦截了这些调用。但没有任何线索..
有人有任何想法吗?
问候 维沙尔
Flex portlet is calling a webservice and I am intercepting the calls to check the session credentials using XFire AbstractHandler method implementation. But I am not getting the same httpsession value that is used for login in to the application. I have intercepted the calls using TCPmon also. But no clue..
Do anybody have any idea?
Regards
Vishal
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
java portlet 的工作方式,确实有不同的会话,毕竟它们被打包在不同的 wars 中,具有不同的上下文,等等。门户的作用是作为 Java EE servlet 过滤器。因此,门户致力于为所有访问它的 portlet 保持必要的门户会话信息同步,同时允许它们在每个 portlet 单独会话的元素中保留自己的会话数据。
该规范具有相当的可读性,,也是我发现最多的书之一当我开始使用 portlet 时,Wrox 的“使用开源工具进行专业门户开发”很有用。我不知道它是否已更新为 JSR 286,这是java Portal 2.0 规范。
The way java portlets work, you do have different sessions, after all they are packaged in different wars, have different contexts, so on. Where the portal comes in, is as a Java EE servlet filter. So the portal works to keep the necessary portal session information syched up for all the portlets accessing it, while allowing them to keep their own session data within elements of each portlets individual session.
The specification is fairly readable, and one of the books I found most useful when I started portlets is "Professional Portal Development with Open Source Tools", by Wrox. I don't know if its been updated for JSR 286 yet, which is the java Portal 2.0 spec.