Welcome!

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

Reply
New Contributor
hoang
Posts: 5
Registered: ‎03-07-2012
My Device: developer

connect Blackberry to MQTT server

I'm writing code that allow my Blackberry's app to subscribe to a topic in an existed MQTT server. I've look around and could not find any example of how to use MQTT with blackberry.

 

According to that page http://mqtt.org/wiki/ , there's solution for android, and iOS but not for blackberry. So, please help me if there're some guides or API that make MQTT to work with Blackberry's app.

 

Thank you,

New Member
andypiper
Posts: 2
Registered: ‎04-02-2012
My Device: Pearl 8100

Re: connect Blackberry to MQTT server

The Java clients listed at http://mqtt.org/software - and the new Eclipse Paho Java client - should be Java ME compatible and enable you to run on BlackBerry.

New Contributor
hoang
Posts: 5
Registered: ‎03-07-2012
My Device: developer

Re: connect Blackberry to MQTT server

I use Paho project (http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.java.git/) but it's currently not compatible with Blackberry JRE 7.0

 

Any suggestion please,

New Member
andypiper
Posts: 2
Registered: ‎04-02-2012
My Device: Pearl 8100

Re: connect Blackberry to MQTT server

What is the error - I don't know what JRE the BlackBerry uses but if it is just regular Java SE then it should be ok?

 

I can only suggest raising a bug against the Paho Java client on Eclipse Bug Tracker.

New Contributor
hoang
Posts: 5
Registered: ‎03-07-2012
My Device: developer

Re: connect Blackberry to MQTT server

According to documentation, RIM platform is based on J2ME, not Java SE.

I'll raise an issue on Eclipse Bug Tracker, thanks for your suggestion :smileyhappy: