黑莓推送通知:是由Tomcat / MySQL的真正需要? [英] BlackBerry push notifications: Is TomCat / MySQL really needed?

查看:254
本文介绍了黑莓推送通知:是由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的时候才需要。请参阅<一个href=\"http://docs.blackberry.com/en/developers/deliverables/14464/BlackBerry_Push_Service_SDK-Development_Guide--925871-0316052041-001-1.0.0.5-US.pdf\">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" 
    "http://www.wapforum.org/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.net"/>
<quality-of-service delivery-method="$(deliveryMethod)"/>
</push-message>
</pap>
--$(boundary)
$(headers)

$(content)
--$(boundary)--

这篇关于黑莓推送通知:是由Tomcat / MySQL的真正需要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆