开发者

Communicating different properties in multiple faces-config.xml

Is there a way by 开发者_Python百科which different managed beans in different faces-config.xml placed in multiple WARs.


No, they reside in different contexts.

Depending on the servlet container, there are ways to share / synchronize the two contexts.

Using ServletContext.getContext(path) would return the other context. There you can obtain all application-scoped beans. (The context must be configured to be accessible from other contexts).

But this is too much hassle for something that should be achieved in other ways.

If you want your two applications to communicate with each other, make them a channel - via web services, JMS, etc.

Update: Tomcat's Signle-Sign-On Valve might be helpful (if using tomcat)

The Single Sign On Vale is utilized when you wish to give users the ability to sign on to any one of the web applications associated with your virtual host, and then have their identity recognized by all other web applications on the same virtual host.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜