[英]Is it possible to use WSO2 ESB / AS and Push notifications with Cometd?
Is it possible to make push notifications from a web application deployed in WSO2 AS to a client who wants to initialize the long polling connection requesting against an ESB proxy that redirects to the web application in the AS? 是否可以从部署在WSO2 AS中的Web应用程序向要初始化长轮询连接的客户端发出推送通知,该客户端请求针对重定向到AS中的Web应用程序的ESB代理进行请求?
The flow could be something like that: 流可能是这样的:
Client long polling request (Browser) -> WSO2 ESB proxy -> WSO2 AS web application (Cometd)
Asynchronously, WSO2 AS web application sends push notifications to the client through the ESB proxy.
Thanks! 谢谢!
I answer myself. 我回答自己。 It is possible.
有可能的。 I got it with a Cometd 2.x servlet and a browser as a client who starts the connection via javascript.
我使用Cometd 2.x Servlet和作为客户端的浏览器通过JavaScript启动连接。
Here's a very clear example about how to make it: http://docs.cometd.org/tutorials/ 这是一个有关如何制作的非常清楚的示例: http : //docs.cometd.org/tutorials/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.