Configure the BlackBerry Mobile Data Service Simulator to allow reliable push connections

by Retired on ‎02-17-2010 03:59 PM (2,421 Views)

Summary

 

This article applies to the BlackBerry® Java™ Development Environment (JDE).

 



Description

 

The BlackBerry Mobile Data Service Simulator must be configured with the reliable push port on which the BlackBerry device application is listening. Add the following line to the rimpublic.property file located in the MDS\config directory:

 

 

push.application.reliable.ports=<####>

 

where <####> represents the port on which the BlackBerry device application is listening.

 

Once the push port is configured in the BlackBerry Mobile Data Service Simulator, the BlackBerry Simulator must make an HTTP request. The HTTP request is made using the BlackBerry Browser with the BlackBerry Mobile Data Service Simulator before it is able to accept a push with application-level acknowledgement. This is because the BlackBerry Mobile Data Service does not recognize the version of the BlackBerry Device Software, and if it supports application-level acknowledgement, until it makes at least one request. This is required for both the BlackBerry Simulator and a BlackBerry device, and can be performed by browsing to a web site using the BlackBerry Browser.

 



Additional Information

 

For information on how to open an input stream that can accept a reliable push, refer to the net.rim.device.api.io.http.MDSPushInputStream class. For an HTTPPushDemo.java sample that illustrates this approach, see the