Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Android Smatphone and JMS connectivity

 
Guay Raven
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !

Raven
 
Perry Hoekstra
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic