如何启动 ajax 推送网站(activemq 或 cometd 或其他)?

发布于 2024-07-27 04:18:39 字数 374 浏览 4 评论 0原文

我想启动一个使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

浅语花开 2024-08-03 04:18:39

在斯洛文尼亚的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

临风闻羌笛 2024-08-03 04:18:39

这很大程度上取决于您的语言框架。 这是一个很好的比较:

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.

萌吟 2024-08-03 04:18:39

好吧,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

烙印 2024-08-03 04:18:39

您还应该考虑 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文