Tag Archives: JSR 356

kafEEne #1: Websocket & Kafka

Say hello  to kafEEne ! A blog series which will show Kafka and Java EE examples This one is about Kafka + (Java EE) Websocket API. Code is on Github and you can refer to the README on how to get this … Continue reading

Posted in Java EE | Tagged , , , , , , , | 1 Comment

WebSocket endpoint as Singleton EJB

By default … … a WebSocket implementation creates a new (server) endpoint instance per client. In case you need a single instance, you can implement this using a custom ServerEndpointConfig.Configurator (by overriding the getEndpointInstance method) The catch: you might have to sacrifice some … Continue reading

Posted in Java, Java EE | Tagged , , , , | 3 Comments

Java Websocket containers: the possibilities

The Java Websocket API (JSR 356) specification supports different containers Good old Java EE 7 app servers – since Websocket API is integrated directly into the Java EE 7 Platform Servlet 3.1 containers Standalone containers – for runtimes which are … Continue reading

Posted in Java EE | Tagged , , , , , | Leave a comment

Java WebSocket API: difference b/w Endpoint and RemoteEndpoint

If you encounter the Endpoint and RemoteEndpoint artefacts from the Java WebSocket API for the first time, you might think they represent the same concept or you might even guess that they are hierarchical in nature. It is not the … Continue reading

Posted in Java, Java EE | Tagged , , , | Leave a comment

WebSocket Client API in Java EE 7

In this post, let’s explore the less talked about Web Socket Client API and how to leverage it within a Java EE 7 container itself Web Socket Server API rules The server side API of JSR 356 (Web Socket API … Continue reading

Posted in Java, Java EE | Tagged , , , , , | 1 Comment