我让 Jetty 和 Bayeux 一起工作得很好,让我可以将 comet 与 dojo 一起使用。但是,我现在需要迁移到 OSGi 码头环境并且正在努力让它工作。
在非 OSGi 环境中,以下行有效并让我启动服务等。但是,在 OSGi 中,servlet 上下文/配置中没有属性“BayeuxServer.ATTRIBUTE”。
BayeuxServer bayeux = (BayeuxServer)getServletContext().getAttribute(BayeuxServer.ATTRIBUTE);
有没有人有任何示例代码、博客文章、参考文章等来帮助解决这个问题?谷歌搜索没有任何结果!
谢谢,埃德