Enterprise Integration Zone is brought to you in partnership with:

Pieter Humphrey is a Consulting Product Marketing Manager responsible for Spring Product Marketing. Pieter comes from BEA/Oracle with long history of developer tools, Java EE, application server and other Java middleware as both a marketing guy and sales engineer since 1998. Pieter is a DZone MVB and is not an employee of DZone and has posted 34 posts at DZone. You can read more from them at their website. View Full User Profile

Webinar: Building WebSocket Browser Applications with Spring

09.24.2013
| 4271 views |
  • submit to reddit

So, you've written a "Hello world!" WebSocket application or perhaps even a chat sample. You're able to exchange messages even in pre-Servlet 3.1 containers and pre-IE 10 browsers (that don't yet support WebSocket) thanks to the SockJS protocol and Spring's support for it. However a message is a blank page that can have any content. 

Whatever message format you choose, proprietary or standard, both client and server need to understand it as well as distinguish different kinds of messages. You need support for the publish-subscribe pattern central to messaging applications so you can broadcast messages to one or more subscribers. You need to incorporate security, validation, and so on. In short you need to build a real-world application. 

If you're used to web applications (and Spring MVC annotated controllers) you are familiar with the foundation that HTTP provides including URLs (nouns), HTTP methods (verbs), headers, parameters, and others. Imagine building an application without HTTP, just a socket. WebSocket gives you this brand new, exciting capability -- full duplex, two-way communication -- yet you no longer have an application-level protocol. Can an entire application be built around a single Endpoint class processing all messages, assuming a single WebSocket connection between browser and server? Join Rossen Stoyanchev as he demonstrates that, thankfully, the WebSocket protocol has a built-in sub-protocol mechanism.

Europe

Tuesday, October 8 3:00PM GMT Summer Time London, GMT+01:00)

Register https://gopivotal.webex.com/gopivotal/onstage/g.php?t=a&d=667384670

North America

Tuesday, October 8 10:00AM PDT San Francisco, GMT-07:00)

Register https://gopivotal.webex.com/gopivotal/onstage/g.php?t=a&d=660130258

Published at DZone with permission of Pieter Humphrey, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)