XMPP与Android交互

发布于 2024-09-03 14:31:50 字数 848 浏览 3 评论 0原文

我目前正在寻找如何在 android 2.1 上构建 XMPP 客户端应用程序。我遇到了 此链接< /a> 这在某种程度上讨论了同样的问题。我是 android 开发的新手,因此发现那里给出的解决方案很难消化。

该系统目前有 Active MQ 作为 JMS 提供者。我的工作是将来自 JMS 的消息发送到 XMPP 服务器,然后在 android 2.1 上开发 XMPP 客户端,该客户端将侦听服务器推送的事件并显示通知。

我有以下担忧(这可能听起来很愚蠢) 1.如何将事件从JMS推送到XMPP服务器,然后XMPP服务器又将它们推送到android上?

2.我应该使用哪种XMPP服务器实现?我有3个选择 * Openfire:非常成熟(是一个商业产品),但听起来像是重量级的,用Java编写的 * Prosody:轻量且易于使用,用 Lua 编写。还没有 PubSub 模块 * Tigase:也是轻量级的,用Java编写,支持PubSub 如何测试和设置这些服务器。我的应用程序需要 PubSub 功能吗?

3.对于XMPP客户端,我遇到了Smack API,给出了 这里 大概是 2 年前更新的。谁能告诉我如何在 Android 2.1 上使用它。如果可能的话,谁可以给我邮寄最新的工作 Smack jar 文件。

谢谢, 阿米亚

I am currently finding about how to build a XMPP client application on android 2.1.I came across this link which somewhat talks about the same problem.I am a newbie to android dev and thus found the solution given there to be difficult to digest.

The system currently has Active MQ as a JMS provider.My job is to fed the messages coming from JMS to the XMPP server and then develope XMPP client on android 2.1 which will listen and show notification to the events pushed by the server.

I have following concerns(which might sound foolish)
1.How do I push the events from JMS to the XMPP server which will in turn push them on android?

2.Which XMPP server implementation I should use?I have 3 options
* Openfire: Very mature (was a commercial product), but sounds like it's heavyweight, written in Java
* Prosody: Lightweight and easy to use, written in Lua. Doesn't have PubSub module yet
* Tigase: Also lightweight, written in Java, supports PubSub
How do I test and setup these servers.Do I need PubSub funcationality for my app?

3.For XMPP client I came across Smack API given here which is updated like 2 years back.Can anyone please tell me how do I make use of it for Android 2.1.If possible can anyone please mail me latest working Smack jar files.

Thanks,
Ameya

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

悲念泪 2024-09-10 14:31:50

为什么不使用 eJabberd 作为 XMPP 服务器?在我看来,它对 pubsub 的支持最好,并且是一个非常高效的服务器。我们使用它已经两年了,没有任何问题。在客户端,是的,asmack 确实是开源选择,但有一些缺点:它不支持 pubsub,并且有一些非常讨厌的错误,如果您深入研究它的某些功能,您会遇到这些错误。我们必须对其进行大量改进和扩展才能实现我们的全功能 Android 社​​交网络 IM/微博/地理定位客户端(称为 BuddyMob),现在我们提供 Smack 的扩展版本作为商业产品(请参阅 http://www.ubikod.com/products.htm)。我们的一些错误修复已集成到 Smack 主干中,但我们所做的大多数扩展都不是免费的。

Why don't you use eJabberd as your XMPP server ? It seems to me that is has the best support of pubsub and is a very efficient server. We use it since 2 years now without any issue. And on the client side, yes, asmack if definitively the open source choice, but has some drawbacks: it does not support pubsub, and has some very nasty bugs that you will encounter if you dive into some of its functionalities. We had to improve and extend it a lot to implement our full featured social network IM/microbloging/geolocalisation client for Android (called BuddyMob) and now we provide an extended version of Smack as a commercial product (see http://www.ubikod.com/products.htm). Some of our bug fixes has been integrated into the Smack trunk, but most of the extensions we did are not free.

往日 2024-09-10 14:31:50

查看 asmack 的 Android Smack 客户端:http://code.google.com/p/asmack/

Look at asmack for an android Smack client: http://code.google.com/p/asmack/

街角卖回忆 2024-09-10 14:31:50

您可以使用 Apache Camel 将消息从 JMS 推送到 XMPP - http://camel.apache.org/xmpp。 html

You can push messages from JMS to XMPP using Apache Camel - http://camel.apache.org/xmpp.html

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