In the mobile world, there are no excuses for any user experience that isn’t instantaneous, dynamic, and safe.
A cool way to develop these types of apps is with the use of a growing technology standard, WebSocket. This standard has been around since 2011 and allows you to add nifty real-time features to a mobile app.
Let’s use the Kaazing WebSocket Gateway and build our first real-time mobile app. Download the JMS Edition of the Gateway to get started. Included are a collection of Web, native and hybrid JMS demo apps for both iOS and Android to learn from. But why not just build one yourself?
All of the demo apps involve the same major programming steps (and model–view–controller pattern). All you have to do is simply import the Kaazing WebSocket Gateway client libraries and then add the following methods:
- Event listeners for the user actions in the Touch User Interface (TUI).
- Connect and disconnect methods for connecting the app to the Gateway and updating the TUI.
- A method for creating JMS topics and queues.
- A message listener to manage JMS messages.
- An exception listener to handle when a JMS provider detects an exception.
- Methods for when the app is paused, resumed, and closed.
That’s all you need.
Thirty minutes from now you can have your own Enterprise-level WebSocket JMS mobile app for you to experiment, extend, and impress with. Excited? Well off you go:
- Go get the JMS Edition Gateway and start it. For information on starting the Gateway, see the Setup Guide.
- Download and install any JMS-compliant message broker. Or better yet, use the Apache ActiveMQ JMS broker included in the JMS Edition of the Gateway. See the Setup Guide for how to start ActiveMQ. It’s dead simple.
- Pick a walkthrough to build your app:
Told you it was easy!