how to implement JMS on Android project - java

Currently, i'm working on android project. I have to join a jms server based on openJMS.
i've not found any library, anyone know how to implement JMS client on Android ?
thx.

Use the Kaazing WebSocket Gateway Android JMS Client API
you can visit Kaazing official website for that.
Thanks!

We have also faced same scenario.
You can use the Kaazing WebSocket Gateway to connect Android (and other) clients to JMS over WebSocket
Checklist: Build Android JMS Clients.

Related

Connect with iOS and Android clients to SockJS Backend

I'm developing WebSocket messaging backend using Spring WebSockets, which uses SockJS + STOMP protocol. The reason why not to use plain WebSockets is because I will need to leverage security integration that SockJS provides in Spring WebSockets and also other neat features from SockJS, such as rooms, subscriptions, etc. I was wondering if this is a good option to use so that mobile (iOS and Android) and Web client apps can easily connect to the backend server and perform messaging. If yes, then what libraries I can use for iOS and Android.
On SockJS GitHub page they are also listing available client libraries, but no iOS nor Android. So, I'm wondering if SockJS is even worth to use just because of that.
I found that for iOS client Primus-Objc (GitHub page) library claiming that they can connect to native WebSockets, Socket.IO, SockJS or perhaps engine.io. is that a true statement? And event if that's true, what about the quality of that library?
And event if it is ok to use SockJS on the back, then would it be also possible to show an example code for iOS and Android so that I can perform a proof of concept on mobile devices?
If SockJS is not a good option for me, then would it be better than to build my messaging app with Socket.io + Node.js (using JavaScript). Socket.io seems to me have all needed client libraries for iOS (official library by Socket.IO guys) and Android (official library by Socket.IO guys).
Another option can be to use Netty-Socket.io library and build each endpoint manually without any help from Spring Framework (which I'm considering to use) but there is small challenge that I'll have to tackle, that is security. Somebody actually already tried to do it (the same author asking question on the official Netty-Socket.IO Github page) but looks like he didn't have a luck in solving it yet.
Maybe it's more than a year since the question was asked. But, because it's getting in the first results when Googling for SockJS+Android. So, I am posting my answer.
From my experience with a recent project I worked on, we were able to use a STOMP client - like the one here- to connect to Spring Websocket backend from native Android app.
And from the browser, you can still use SockJS client to gain across browsers compatibility to websockets with fallback.
A note to mention that when using only STOMP client to connect to native websocket the URL will be something like ws://mydomain/SockJSEndpoint/websocket,
and when using SockJS client from the browser the URL will be like http://mydomain/SockJSEndpoint.
Please find below useful references related to your requirement for both iOS and Android
http://www.elabs.se/blog/66-using-websockets-in-native-ios-and-android-apps
https://www.cometchat.com/blog/ios-android-chat-mobile-sdk/
https://github.com/elabs/mobile-websocket-example
We have tested them, both Android-client (link) was given by #Amr K. Ismail and
this iOS-client (link) are suitable with Spring-SockJS-Server which has STOMP.
SockJS may be interesting because it provides non-ws transports. Just using WebSockets may not be possible in all situations.
There is one cross-platform SockJs client of the OpenFL project:
https://github.com/jeremyfa/openfl-sockjs
Not tested how well it works, but at least for Android it's using JavaScript from inside WebView, so should be no different than JavaScript one. Again, it is not clear how tightly it is coupled with OpenFL, but the approach of using WebView and stock SockJS client could probably be re-used.

Spring STOMP Java client and server pub/sub topic

I am looking for an example or code snippets on using Spring's STOMP topic pub/sub messaging, with both the client and server in the same tomcat7 instance. NOT OVER THE WEBSOCKET.
We want to handle some operations asynchronously in our server side and so want to use STOMP as our messaging protocol in our tomcat7 instance. Everywhere I look I find samples for STOMP over websocket or integrating with other MOM's!!
Anyone know about a java sample for simple spring stomp pub/sub? Appreciate any pointers...Thanks.
Have a look at the Spring Websocket Portfolio application. Yes, I know you said not over websocket, but the application has some tests that use a STOMP client/server that might just be what you are looking for.

Does Java have any API for Gmail chat?

I'm trying to make a chat application for Gmail on Java, but I couldn't find any API for this purpose. I was told about OAuth but I don't think it has any such feature. Please suggest me an API or help me use OAuth in this situation. Thanks in advance.
Google uses the XMPP protocol for its chats.
XMPP Java API Overview
a simple tutorial using the Smack library
Gmail utilises a web-based version of Google Talk (GTalk). GTalk is a Jabber/XMPP-based chat system.
I'd recommend looking at a Jabber/XMPP library for Java, such as Smack, noted as an answer in this question; best java jabber client library
Google Chat, and Google Talk, use the XMPP protocol. You might find it useful to read the Google documentation here... https://developers.google.com/talk/

How to connect Exchange Web Services via java web service client?

I am using JWebService framework to connect my Exchange Server 2007. As it is a paid version, I am looking for some open source like JWebService.
Can anyone suggest a good alternative Java API that is free?
Thanks in advance!
You can have a look at http://archive.msdn.microsoft.com/ewsjavaapi and http://sourceforge.net/projects/j-xchange/

kaazing websocket with gae

any demo on using kaazing websocket with gae?
Websockets are not currently supported on App Engine. Browser Push is on the roadmap, however.

Categories

Resources