This article applies to the BlackBerry® Java™ Development Environment (JDE).
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:
<####> 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.
For information on how to open an input stream that can accept a reliable push, refer to the
net.rim.device.api.io.http.MDSPushInputStreamclass. For an HTTPPushDemo.java sample that illustrates this approach, see the