将 GAE XMPP 服务作为现有 XMPP 服务器的外部组件实施(例如 ejabberd 或 OpenFire)
我可以知道你们使用什么集成技术来实现现有 XMPP 服务器的外部组件(例如 ejabberd 或 OpenFire)。是直接发送xmpp消息到另一个user@externaldomain还是使用像urlfetch这样的机制?
may i know what integration technique that you folks use to implement external component to an existing XMPP server (e.g. ejabberd or OpenFire) . Is it through sending xmpp message to another user@externaldomain directly or using mechanism like urlfetch?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Google 应用引擎 (Gae) 确实支持 XMPP,就像 CLIENT 一样。
借助 XMPP Gae JAVA 客户端功能,您可以:
发送消息
接收消息
请记住,JID 可以只是[电子邮件受保护] 或 [电子邮件受保护]
因为尚不支持 Google 域名。
例如,您可以使用一个简单的页面制作一个玩具 Gae 应用程序,其中包含:
要测试您的应用程序:
如果您已启动并运行个人 XMPP 服务器 (openfire),只需跳过步骤 1 并使用您的域帐户即可从您精美的 Gae 应用程序接收消息。
查看 XMPP 消息传递 以了解其工作原理。
Google app engine (Gae) does support XMPP just as CLIENT.
With XMPP Gae JAVA client feature you can:
SEND MESSAGE
RECEIVE MESSAGE
Remember that JIDs can just be [email protected] OR [email protected]
because Google domains are not supported yet.
For example, you could craft a toy Gae application with a simple page with:
To test your application:
In case you have your personal XMPP server (openfire) up and running, simply skip step 1 and use your domain account to receive message from your fancy Gae App.
Have a look to XMPP message delivery to understand how this works.
App Engine 支持非常有限的 XMPP 子集。基本上,您可以发送消息(通过 API),也可以接收消息(它们以 HTTP 请求的形式出现)。
Java API
Python API
您可以在现有的设备上安装外部组件XMPP 服务器,用于使用您的应用引擎代码发送和接收消息。该组件必须跟踪您想要从应用程序发送和接收的任何内容。
App Engine supports a very limited subset of XMPP. Basically, you can send messages (through the API), and you can receive messages (they come in as HTTP requests).
Java API
Python API
You could rig up an external component on your existing XMPP server, to send and receive messages with your app engine code. That component would have to keep track of whatever it is you want to send and receive from your app.