Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 25
Registered: ‎05-19-2010
My Device: 9360

Receive push messages in a BlackBerry simulator with MDS

Hi, I've read several threads about this subject or relatives but I didn't found a clear answer explanation about the process to accomplish this. Also, BlackBerry documentation don't help very much....

I have a Java usual application that sends push messages trough a BES server. I'd like for testing purposes to receive these push messages in a BlackBerry simulator with MDS active in a PC machine. I've tried to configure the simulator(and MDS) with a deviceID and a email address already registered in the BES server without succes.

Could it be built the testing scenario I'm trying to build? If not, could it exist another possible testing scenario not involving to deploy my application in a real BlackBerry device?

Thanks in advance.

Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Receive push messages in a BlackBerry simulator with MDS

check out the mds push sample application that ships with the JDE/Eclipse-Plugin

feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Contributor
Posts: 2
Registered: ‎12-14-2012
My Device: Simulator

Re: Receive push messages in a BlackBerry simulator with MDS

Hi, you can find the HttpPushDemo here: https://developer.blackberry.com/java/documentation/int_http_push_1988896_11.html


You also need the MDS simulator, that you can find it here: http://us.blackberry.com/sites/developers/resources/simulators.html


I suppose you already have the BlackBerry JDE Eclipse but you can find it here: http://es.blackberry.com/developers/javaappdev/#


In the HttpPushDemo you'll find a readme. Skip steps 3 and 4 because I think they refer to an old BlackBerry JDE.


One last thing: my Eclise started with Java7 and that caused a problem with some regex pattern. If you experience this problem, try using Java6.