java client to subscribe to cometd channels

江枫思渺然 提交于 2019-12-12 04:30:43

问题


Our application that will act as a client needs to subscribe to an external system that uses cometd to deliver unsolicited notifications to clients. Is there a way to achieve this without cometd libraries (via apache HttpClient for instance)? Java version mismatch is the problem - we use 1.6, but cometd require 1.7 or higher.

thanks in advance


回答1:


CometD 2.x, albeit not under development anymore, supports back to JDK 5.

The underlying protocol (Bayeux) is the same, so I expect a CometD 2.x client to work against a CometD 3.x server.

The alternative is for you to reimplement the Bayeux protocol from scratch, which is not that difficult but it does require a bit of work.



来源:https://stackoverflow.com/questions/37182217/java-client-to-subscribe-to-cometd-channels

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!