• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Websocket coverage in Spring in Action

 
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With this new edition it appears Websockets are covered and I'm really interested in this area. In past demos I've seen messaging queues like RabbitMQ used to implement websockets and in this book it appears that STOMP is used specifically for websockets and a separate chapter is devoted to messaging.

Is STOMP the standard websockets implementation for Spring? Does it differ from the standard Spring websocket module?
 
author
Posts: 422
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

STOMP and WebSocket are related, but different concepts. STOMP is to WebSocket what HTTP is to TCP Socket. That is, it provides a standard format for the messages sent over WebSocket.

Spring's low-level WebSocket implementation is fine, but it leaves it up to you to coordinate the message format between client and server. Add STOMP on top of that and that problem is handled for you. Spring in Action covers both models, but truthfully, I favor the STOMP option, as it lets you write message handlers in a way very similar to how you write HTTP request handlers in Spring MVC.


Matt Kidd wrote:With this new edition it appears Websockets are covered and I'm really interested in this area. In past demos I've seen messaging queues like RabbitMQ used to implement websockets and in this book it appears that STOMP is used specifically for websockets and a separate chapter is devoted to messaging.

Is STOMP the standard websockets implementation for Spring? Does it differ from the standard Spring websocket module?

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic