Tag Archives: glassfish

JAX-RS 2.1 SSE Client API example using Glassfish 5 on Docker

Along with the Server API for SSE, JAX-RS 2.1 (part of Java EE 8) also has an equivalent client side API Here is a quick peek – you can grab the project from Github This file contains bidirectional Unicode text … Continue reading

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

CDI (2.0) Async Events

Glassfish 5 builds for Java EE 8 are rolling along… here is another Docker based example on Github. This time it’s asynchronous events in CDI 2.0 (JSR 365) Steps Just follow the README… just a bunch of docker commands to get … Continue reading

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

Glassfish 5: JAX-RS SSE quickstart

Latest Glassfish 5 build 08 was announced today which includes JAX-RS 2.1 (JSR 370) integration. I am fond of Server Sent Events (SSE), so let’s take it for a test ride – here is a Docker based quick start on Github … Continue reading

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

Jersey SSE capability in Glass Fish 4.0.1

         Glass Fish bundles different Reference Implementations for various Java EE specifications e.g. Weld for CDI, Mojarra for JSF, Tyrus for WebSocket, Jersey for JAX-RS. Glass Fish 4.0.1 is in the pipeline and slated to cover updates for … Continue reading

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

Book Review: Java EE 7 with GlassFish4 Application Server

This is a review of the book Java EE 7 with GlassFish 4 Application Server    What is this book about? The book is a fast paced tutorial for Java EE 7. It focuses on covering the foundational Java EE … Continue reading

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

Just a follow up on WebSocket API issue with Tyrus (on GlassFish)

Follow up on the WebSocket API issue with Tyrus (on GlassFish). I initially reported this under Glassfish 4 – details. This has been appropriately filed under TYRUS – link and should hopefully be resolved soon. Thanks to Pavel Bucek ! Cheers!

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

Websocket API issues during XML payload transmission via getSendWriter() handle

Facing weird issues with the WebSocket API Use Case: Trying to send a XML payload back to the remote client using the java.io.Writer handle provided by the getSendWriter() method in RemoteEndpoint.Basic interface Code snippet below   SampleModel is just a POJO … Continue reading

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

Try GFish 4.0.1 nightly builds for JDK8+lambdas support

Just a head up: Lambdas are not working OOTB with Glass Fish 4.0 Code Snippet   You will see an error similar to below SEVERE: Exception while visiting WEB-INF/classes/com/abhirockzz/websocketapi/SimpleWSEndpoint.class of size 4732 java.lang.ArrayIndexOutOfBoundsException: 52264 at org.objectweb.asm.ClassReader.readClass(ClassReader.java:2015) at org.objectweb.asm.ClassReader.accept(ClassReader.java:469) at org.objectweb.asm.ClassReader.accept(ClassReader.java:425) at … Continue reading

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