File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Android Smatphone and JMS connectivity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Android Smatphone and JMS connectivity" Watch "Android Smatphone and JMS connectivity" New topic

Android Smatphone and JMS connectivity

Guay Raven

Joined: Apr 15, 2011
Posts: 1
Hi All,

I am new to the android development and ideally want to establish a connection/connectivity between an Android Smartphone and Java Message Service and Event Bus. I have already done the JMS and Event bus connectivity , Now further wants to connect to some Android based Smartphone.

Is this possible to do it vice-versa also ?

Any suggestions on how to implement this would be appreciated. Please advise any available tools/applications also.

Thanks in Advance !

Perry Hoekstra

Joined: Dec 07, 2010
Posts: 28
The problem you will run into trying to get a JMS client on an Android is that while Android has most of the base J2SE stack, it does not have any of the javax.* classes. All of the JMS clients use packages such as javax.naming or javax.transaction. You would be in for a bit of work getting something up and running.

Now, as an alternative, if you are not wedded to a particular JMS implementation, JBoss/HornetQ has a REST API for JMS that would be callable from a Android phone.

Perry Hoekstra
Augusto Sellhorn
Ranch Hand

Joined: May 24, 2007
Posts: 57
For things like Android, I would consider lightweight transport mechanisms like using STOMP as transport over ActiveMQ. You don't have to have all the JMS classes on your mobile device, but can easily interact with a broker with this text based protocol.
I agree. Here's the link:
subject: Android Smatphone and JMS connectivity
It's not a secret anymore!