Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
358 views
in Technique[技术] by (71.8m points)

java - BlackBerry push notifications: Is TomCat / MySQL really needed?

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.

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

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

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

Here is the PAP file.

--$(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/[email protected]"/>
<quality-of-service delivery-method="$(deliveryMethod)"/>
</push-message>
</pap>
--$(boundary)
$(headers)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...