如何启动 ajax 推送网站(activemq 或 cometd 或其他)?
我想启动一个使用 ajax 推送的应用程序,但是应该正确配置 Web 服务器,并且我不知道如何在服务器端组件上启动。
我想从 dojo 的 cometd 开始,然后阅读一些博客说 activeMQ 是较旧的,并且是 ajax 推送方面的标志载体,但也有另一个博客说它很难设置并使其工作。
现在我在开始之前感到困惑,请告诉我我的方法:)配置ajax推送环境的最佳方法是什么?
司南。
I want to start an application which will use ajax push, however the web server should be configured properly and i don't know how to start on server side components.
I wanted to start with dojo's cometd and then read some blogs saying that activeMQ is older and flag carrier on ajax push thing, but there was also another blog saying that it is very hard to set-up and get it work.
Now i'm confused before giving a start, please tell me my way :) What's the optimum way of configuring an ajax push environment?
Sinan.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
在斯洛文尼亚的PHP会议上,据说Meteor是Comet最好的服务器。
At PHP conference in Slovenia, it was said that Meteor is the best server for Comet.
您检查过 ActiveMQ Ajax 页面吗(http://activemq.apache.org/ajax.html )?
正确配置它应该不难。 请随时将任何相关问题发布到 ActiveMQ 用户邮件列表。
干杯
德扬
did you check ActiveMQ Ajax page (http://activemq.apache.org/ajax.html)?
it shouldn't be that hard to configure it right. And feel free to post any related questions to the ActiveMQ user mailing list.
Cheers
Dejan
这很大程度上取决于您的语言框架。 这是一个很好的比较:
http://cometdaily.com/maturity.html
它不包含我的公司刚刚为 .NET 环境发布了新的一个,WebSync,但在其他方面相当全面。
It very much depends on your language framework. Here's a nice comparison:
http://cometdaily.com/maturity.html
It doesn't contain the new one my company just released for .NET environments, WebSync, but otherwise is fairly comprehensive.
好吧,cometd 并不是很难配置.. 你会在 comed 站点中得到示例....
它有两种方法订阅和发布,为了进行 ajax 推送,你必须订阅一个频道并将内容发布到该频道..这就是基本用途...我们使用相同的方法。
cometd 实现有 dojo 和 jquery 版本。我们使用了 dojo 的 . 无论您使用哪一个都没关系..一旦您看到示例,您就会理解..
这种订阅和发布方法非常适合聊天应用程序以及通过网络广播...
用于网站设计和后端功能.. .我们使用了j2ee框架和jetty网络服务器.....
如果我正确理解你的问题...你必须安装Jetty 7(webtide版本)..只有这个版本支持Cometd ....安装我的意思是解压缩:- ) .. 非常简单 ... 在 Web 应用程序文件夹中,您会得到一个包含示例的 cometd 文件夹 .. 正确理解此示例 .. 您的 Web 应用程序的 jsp 页面将使用 javascript 来订阅和发布 .... 现在正在发布您将调用某些 javascript 函数,该函数又会调用“div”...这就是您发布或广播内容的方式...
我假设您熟悉 javascript 、 jsp 和 servlet ...
imashok2000(dot) gmail(dot)com
谢谢,
阿肖克
Well , cometd is not very hard to configure .. you would get examples in the comed site....
it has two methods subscribe and publish , for doing a ajax push u have to subscribe to a channel and publish the content to the channel .. thats the basic use ... we used the same methodlogy.
There are to version of cometd implementations dojo and jquery .. we used dojo's . It doesn't matter which one u use .. once u see the examples u would understand ....
This subscribe and publish methodology is good for chat applications and also broadcasting over the network ...
for website design and backend functionalities ... we used j2ee framework and jetty webserver .....
If I understand ur question correctly ... u have to install Jetty 7 ( webtide version ) .. only this version supports Cometd .... by install I mean unzip :-) .. its so easy ... in the web apps folder u get a cometd folder with examples .. understand this examples properly .. your web application's jsp pages would be using the javascripts to subscribe and publish .... now in publish function you would be calling certain javascript function, which would in turn call a "div" ... thats how u publish or broadcast ur content ....
I assume u r familiar about javascript , jsp's and servlets ...
imashok2000(dot)gmail(dot)com
thanks ,
Ashok
您还应该考虑 Jetty 容器顶部的 Lift 框架。 据我了解,它对彗星风格的 Web 开发有很好的支持。
www.liftweb.net
You should also consider the Lift framework on top of the Jetty container. It has from my understanding very good support for comet style web development.
www.liftweb.net