Asynchronous WAR To WAR Communication With WebSockets

WebSockets come with Java EE 7 and require no additional dependencies or libraries. Particularly in "microservices architectures" websockets are an interesting option for the implementation of WAR to WAR communication.

In this screencast I created two WARs from scratch and let them communicate via WebSockets:

See you at Java EE Microservices. Is Munich's airport too far? Learn from home: javaeemicro.services.


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 8, Java 9: Bootstrap, Effective, Architectures, Single Page Apps, Progressive Web Apps, HTML 5, ES 6, CSS 3 and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

I like it :-) What do you suggest on a non-Java EE client, e.g. JavaFX client, for WebSocket communication with a WAR?
Cheers Michael

Posted by Michael on February 03, 2017 at 04:14 PM CET #

Hi Adam,

Thanks for the video, great way to solve this.

But how can you deal with deployment order (e.g. websphere liberty does support specifying a deployment order of wars)? And what happens if the "server" war is redeployed?

Niklas

Posted by Niklas Mehner on February 04, 2017 at 02:29 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
realworldpatterns.com
Online Workshops
...the last 150 posts
...the last 10 comments
License