黑莓推送通知:是由Tomcat / MySQL的真正需要?

编程入门 行业动态 更新时间:2024-10-27 07:28:43
本文介绍了黑莓推送通知:是由Tomcat / MySQL的真正需要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

似乎没有能够成为信息的关于黑莓的推送技术,数额巨大。我想做到的唯一事情是将通知发送至BlackBerry设备,因为他们成为可用。我真的需要一个Tomcat和MySQL吗?我的Java程序不是一个servlet和东西我使用PHP和交流通过套接字到Java在Web端。

There doesn't seem to be a huge amount of information regarding BlackBerry's push technology. The only thing I wish to accomplish is to send notifications to blackberry devices as they become available. Do I really need TomCat and MySQL for this? My java program is not a servlet and for the web-side of things I use PHP and communicate to java via sockets.

我用java,如果有人的一些例子知道,那将是巨大的。

I am using java and if anyone knows of some examples, that would be great.

推荐答案

您可以用任何语言来推到服务器。你唯一需要的是在推SDK中的演示应用程序提供的PAP文件

You can use any language to push to the server. The only thing you need is the PAP file provided in the demo APP in the PUSH SDK

您需要发送的文件,PAP与RIM您指定凭证throught HTTP。

You need to send the PAP file throught http with your given credential by RIM.

编辑:如果你想与你的BES环境中安装自己的推送服务器Tomcat和Mysql的时候才需要。请参阅Docs对于DebugPortal 20页

Edit : Tomcat and Mysql are needed only if you want to install your own PUSH server with your BES environment. See the Docs for DebugPortal on page 20

下面是PAP文件。

--$(boundary) Content-Type: application/xml; charset=UTF-8 <?xml version="1.0"?> <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.0//EN" "www.wapforum/DTD/pap_2.0.dtd" [<?wap-pap-ver supported-versions="2.0"?>]> <pap> <push-message push-id="$(pushid)" ppg-notify-requested-to="$(notifyURL)"> <address address-value="WAPPUSH=$(pin)%3A100/TYPE=USER@rim"/> <quality-of-service delivery-method="$(deliveryMethod)"/> </push-message> </pap> --$(boundary) $(headers) $(content) --$(boundary)--

更多推荐

黑莓推送通知:是由Tomcat / MySQL的真正需要?

本文发布于:2023-11-15 23:09:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1598783.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:是由   通知   黑莓   MySQL   Tomcat

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!