JMS, WebSocket, and the Internet of Things - Controlling Physical Devices on the Real Time Web
Upcoming SlideShare
Loading in...5
×
 

JMS, WebSocket, and the Internet of Things - Controlling Physical Devices on the Real Time Web

on

  • 5,504 views

JMS is widely used behind enterprise firewalls to build loosely coupled distributed systems. This session discusses how JMS can be extended and applied to an always connected Web and mobile ...

JMS is widely used behind enterprise firewalls to build loosely coupled distributed systems. This session discusses how JMS can be extended and applied to an always connected Web and mobile environment to provide interactivity and collaboration by controlling physical objects, such as model cars, remotely. You’ll learn how you can connect an HTML5 client running on the Web browser of a smartphone and Java running on a Raspberry Pi, a credit-card-size computer, in real time, using open industry-standard Web technologies. The presentation features several live demonstrations of the concepts discussed throughout the session.
Presentation given by David Witherspoon and Prashant Khanal on Sep 25, 2013 at JavaOne in San Francisco.

Statistics

Views

Total Views
5,504
Views on SlideShare
1,608
Embed Views
3,896

Actions

Likes
2
Downloads
46
Comments
0

33 Embeds 3,896

http://blog.kaazing.com 3617
http://java.sys-con.com 50
http://www.sys-con.com 40
http://entrepreneurs.ulitzer.com 30
http://oracle.sys-con.com 25
http://ibm.ulitzer.com 18
http://eclipse.sys-con.com 17
http://apache.sys-con.com 12
https://twitter.com 12
http://weblogic.sys-con.com 11
http://dotnet.sys-con.com 7
http://cloud.feedly.com 7
http://apache.ulitzer.com 7
http://websphere.sys-con.com 6
http://www.newsblur.com 4
http://sap.sys-con.com 4
http://www.tuicool.com 3
http://ciocto.ulitzer.com 3
http://redhat.sys-con.com 3
http://php.sys-con.com 3
http://www.linkedin.com 2
http://jonasjacobi.sys-con.com 2
http://oracle.ulitzer.com 2
http://www.verious.com 2
http://webcache.googleusercontent.com 1
http://www.google.com 1
http://translate.googleusercontent.com 1
http://telecominnovation.ulitzer.com 1
https://www.google.com 1
http://jonasjacobi.ulitzer.com 1
http://opensource.ulitzer.com 1
http://java.ulitzer.com 1
http://tweetedtimes.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

JMS, WebSocket, and the Internet of Things - Controlling Physical Devices on the Real Time Web JMS, WebSocket, and the Internet of Things - Controlling Physical Devices on the Real Time Web Presentation Transcript

  • © 2013 Kaazing Corporation. All Rights Reserved. 1 Controlling Physical Devices on the Real Time Web David Witherspoon Prashant Khanal Sep 25, 2013
  • © 2013 Kaazing Corporation. All Rights Reserved. About Us §  Prashant Khanal §  Software Engineer – Kaazing §  Prashant.Khanal@kaazing.com §  Twitter: @ipras §  David Witherspoon §  Software Engineer – Kaazing §  David.Witherspoon@kaazing.com §  Twitter: @dpwspoon
  • © 2013 Kaazing Corporation. All Rights Reserved. Demo!
  • © 2013 Kaazing Corporation. All Rights Reserved. Agenda §  Requirements for the IoT §  Creating a reference architecture for IoT §  Live Demos, Live Demos, Live Demos §  Source Code, Source Code, Source Code §  WoT and IoT
  • © 2013 Kaazing Corporation. All Rights Reserved. Internet of Things Ubiquitous/Pervasive Heterogeneous Highly Interconnected Event-Driven/Real Time Identifiable Components Always On Scalable Manageable
  • © 2013 Kaazing Corporation. All Rights Reserved. Raspberry Pi Image source: http://www.oracle.com/technetwork/articles/java/raspberrypi-1704896.html
  • © 2013 Kaazing Corporation. All Rights Reserved. Raspberry Pi Resources §  RaspberryPi.org §  Wheezy (OS) §  Oracle JVM §  Pi4J (Raspberry Pi Java Library)
  • © 2013 Kaazing Corporation. All Rights Reserved. Demo!
  • © 2013 Kaazing Corporation. All Rights Reserved. Demo Setup
  • © 2013 Kaazing Corporation. All Rights Reserved. Raspberry Pi Controlling the Light Directly
  • © 2013 Kaazing Corporation. All Rights Reserved. Raspberry Pi Controlling the Light Directly
  • © 2013 Kaazing Corporation. All Rights Reserved. Raspberry Pi Controlling the Light Directly
  • © 2013 Kaazing Corporation. All Rights Reserved. Raspberry Pi Controlling the Light Directly
  • © 2013 Kaazing Corporation. All Rights Reserved. Demo Setup
  • © 2013 Kaazing Corporation. All Rights Reserved. Raspberry Pi Reading from a Toggle Switch
  • © 2013 Kaazing Corporation. All Rights Reserved. Raspberry Pi Reading from a Toggle Switch
  • © 2013 Kaazing Corporation. All Rights Reserved. Raspberry Pi Reading from a Toggle Switch
  • © 2013 Kaazing Corporation. All Rights Reserved. Demo Setup
  • © 2013 Kaazing Corporation. All Rights Reserved. Messaging for the IoT §  Messaging Style §  Interconnected / Bidirectional §  Dynamic States (Could be on or off) §  Messaging Protocol Requirements §  Identity §  Data formats §  Transactions §  Acknowledgments §  And more …
  • © 2013 Kaazing Corporation. All Rights Reserved. Message Systems/Protocols for the IoT §  Java Message Service (JMS) §  Standard messaging API §  Vendor independent §  Pub / Sub §  Loosely Coupled
  • © 2013 Kaazing Corporation. All Rights Reserved. Controlling the Light Remotely Using Pub-Sub
  • © 2013 Kaazing Corporation. All Rights Reserved. Demo!
  • © 2013 Kaazing Corporation. All Rights Reserved. LightJmsTcpController Using JMS to Control a Light
  • © 2013 Kaazing Corporation. All Rights Reserved. LightJmsTcpController Using JMS to Control a Light
  • © 2013 Kaazing Corporation. All Rights Reserved. LightJmsTcpController Using JMS to Control a Light
  • © 2013 Kaazing Corporation. All Rights Reserved. LightJmsTcpController Using JMS to Control a Light
  • © 2013 Kaazing Corporation. All Rights Reserved. ToggleJmsTcpListener Using JMS to Send Events
  • © 2013 Kaazing Corporation. All Rights Reserved. ToggleJmsTcpListener Using JMS to Send Events
  • © 2013 Kaazing Corporation. All Rights Reserved. Controlling the Light Remotely Using Pub-Sub
  • © 2013 Kaazing Corporation. All Rights Reserved. Challenges with TCP §  Isolated networks §  Firewalls §  Ports §  Web browsers
  • © 2013 Kaazing Corporation. All Rights Reserved. How to Extend This to the Web
  • © 2013 Kaazing Corporation. All Rights Reserved. Controlling the Light Remotely Using Pub-Sub Over the Web
  • © 2013 Kaazing Corporation. All Rights Reserved. HTML5 WebSocket: TCP for the Web §  Standard Protocol (IETF): RFC-6455 §  Standard API: §  W3C: JavaScript §  JSR 356: Java EE §  Single socket, full-duplex §  Low overhead: <1% of HTTP §  Low latency: low milliseconds §  SSL support Full duplex
  • © 2013 Kaazing Corporation. All Rights Reserved. Protocol Layering TCP JMS XMPP AMQP B2B FTP VNC mktdata etc Browsers, Native Applications and IoT Devices WebSocket Gateway Internet WebSocket Gateway
  • © 2013 Kaazing Corporation. All Rights Reserved. Controlling the Light Remotely Using Pub-Sub Over the Web
  • © 2013 Kaazing Corporation. All Rights Reserved. Demo!
  • © 2013 Kaazing Corporation. All Rights Reserved. WebSocket with Brokers
  • © 2013 Kaazing Corporation. All Rights Reserved. WebSocket with Brokers
  • © 2013 Kaazing Corporation. All Rights Reserved. WebSocket with Brokers
  • © 2013 Kaazing Corporation. All Rights Reserved. Internet of Things
  • © 2013 Kaazing Corporation. All Rights Reserved. Internet of Things == Web of Things
  • © 2013 Kaazing Corporation. All Rights Reserved. The Architecture
  • © 2013 Kaazing Corporation. All Rights Reserved. The Web of Things
  • © 2013 Kaazing Corporation. All Rights Reserved. WebSocket Powering the Web of Things WS WS WS WS WS WS WS WS WS
  • © 2013 Kaazing Corporation. All Rights Reserved. Extending Protocols to the Web of Things MQTT/WS AMQP/WS JMS/WS STOMP/WS XMPP/WS
  • © 2013 Kaazing Corporation. All Rights Reserved. Raspberry Pi Resources §  RaspberryPi.org §  http://www.raspberrypi.org/ §  Wheezy (OS) §  http://www.raspberrypi.org/downloads §  Oracle JVM on the Pi §  http://www.oracle.com/technetwork/articles/java/raspberrypi-1704896.html §  Pi4J (Raspberry Pi Java Library) §  http://pi4j.com/
  • © 2013 Kaazing Corporation. All Rights Reserved. Find Out More §  The Zinger – Blog: §  http://blog.kaazing.com §  HTML5 Developer Conference §  October 22-23, 2013, San Francisco, Moscone North §  JMS WebSocket Tutorial §  http://tutorial.kaazing.com §  More developer content §  http://developer.kaazing.com §  RC Car / Light and Switch Code §  https://github.com/dpwspoon/kaazingPi §  The Definitive Guide to HTML5 WebSocket, (Apress, 2013) §  First comprehensive guide on WebSocket §  Use WSK214 for 40% of the e-book 47
  • © 2013 Kaazing Corporation. All Rights Reserved.
  • © 2013 Kaazing Corporation. All Rights Reserved. The End