gpt4 book ai didi

java - 在 Apache Karaf 3.0(OSGI 环境)中的 Atmosphere 上运行 Apache CXF

转载 作者:行者123 更新时间:2023-12-02 06:58:38 25 4
gpt4 key购买 nike

我正在尝试使用 Apache CXF - JAX-RS RESTFul 服务来实现服务器推送/反向 Ajax/Comet 技术,例如 HTTP 流或 SSE 等(> CXF 2.7.x - 支持 Servlet 3.0 和 JAX-RS 2.0异步支持)。现在我正在评估使用 Atmosphere 或 Cometd 或类似的框架在我的 Karaf OSGI 环境中顺利运行,而不会有太多复杂性。请让我知道如何以编程方式配置 Atmosphere 以在没有 web.xml 的 OSGI 世界中的 CXF 之上运行...如果有人可以通过示例指导我,那就太好了...谢谢

Not much help in this - But this is what I exactly want to answer for!!

最佳答案

我放弃了atmosphere (除了 servlet 3 async spec + 具有高级抽象的广播功能之外什么也不做)。

FYR :仍然有些人可能更喜欢气氛而不是 Servlet 3 - 由于它的抽象性。但对于我来说,它太臃肿了!

相反,我写了一个简单的 Async Servlet 3 - 在 Servlet 3 容器上运行。 (这足以满足我的要求)

对于客户端支持 - 我选择 portal.js - 用于 Comet/Reverse Ajax 技术的干净的跨浏览器 JS 框架。

关于java - 在 Apache Karaf 3.0(OSGI 环境)中的 Atmosphere 上运行 Apache CXF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16976186/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com