1
votes

I have a java application under JBoss and i want to send push notifications to notify the Android device if i needs some particular piece of data, and then the device can send that to the server.

I found two solutions: - Android Cloud to Device Messaging (C2DM) - MQTT

I'm new to these message protocols and i'm searching if there is compatibility with JBoss. In particular, for the MQTT, i can't find a MQTT broker for JBoss.

Can anyone help me or suggest me other solution for pushing notifications to Android devices? Thank you

2

2 Answers

1
votes

C2DM has been deprecated by Google. The current version of the Google Push Service is called Google Cloud Messaging.

On your MQTT broker question: You need an MQTT client on Android and you can use any MQTT broker you like for the server part (for example HiveMQ [1]). The Android client subscribes to the broker and your JBoss application is another client, which simple publishes a message that the client receives. For that to happen your MQTT broker needs to be accessible from Android and the JBoss application, and both need to use the same topic.

As client library for both you can use Eclipse Paho [2] and for testing a public mqtt broker [3].

Hope that helps, Chris


[1] http://www.hivemq.com

[2] http://www.eclipse.org/paho/

[3] http://mqttdashboard.com/dashboard

0
votes

You can use openmobster (Open source Mbaas)

This Provides a mobile platform-independent Cloud-initiated Push Notification System.( In Android, the push mechanism is based an a persistent socket connection)