Tag Archives: javaee

New release: Java WebSocket API handbook

Happy to announce the initial release of the Java WebSocket API handbook. This is still a work in progress but moving at a strady pace. You can read this on Gitbook or grab your PDF/ePub/Mobi version from Leanpub   Here is … Continue reading

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

(eBook) ‘REST assured with JAX-RS’ now available on Gitbook

    You can now read REST assured with JAX-RS online on Gitbook, or grab the PDF from Leanpub.. Happy reading!

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

Using Asynchronous timeouts in the Java WebSocket API

Sending messages in an asynchronous manner avoid blocking the sending thread. This is a great where your solution needs to scale in order to support a large number of clients. But there is a limit on how long can we … Continue reading

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

Dynamic provider registration in JAX-RS

The DynamicFeature class in JAX-RS (2.0) allows you to register providers Dynamically i.e. without any pre-defined binding strategy (e.g. annotations) Based on criteria i.e. to help decide which provider to bind to which JAX-RS resource(s) The JAX-RS implementation detects and executes … Continue reading

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

WebSocket and CDI integration.. again..

In one of my older blog posts, I had written about what does not work as far as WebSocket and CDI integration within the Java EE Platform 😉 This one talks about what’s possible with CDI in terms of Dependency Injection Interceptors … Continue reading

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

Configuring WebSocket server endpoints

WebSocket Server endpoint configuration Before we dive into the details, here is a quick snapshot of the related interfaces Class/Interface Description ServerEndpointConfig A derivative of EndpointConfig interface which is specific for configuration related to server side WebSocket endpoints ServerEndpointConfig.Configurator An … Continue reading

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

Difference b/w Cache Writer and Cache entry listener

In one of my previous blogs, I gave an overview of Cache Loader+Writer as well as Cache entry listeners. The difference b/w a Cache Loader and Cache create/update entry listener is obvious and their roles are clearly differentiated a loader pulls the … Continue reading

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

Deploying WebSocket annotated & programmatic server endpoints together

One of my previous blog post discussed Programmatic WebSocket endpoints and their deployment methodology using the javax.server.ServerApplicationConfig class. When annotated and programmatic endpoints co-exist… you have to make use of the a custom implementation of ServerApplicationConfig and explicitly return set … Continue reading

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

Java EE microservices with Oracle Application Container Cloud and Wildfly Swarm

  Just wanted to drop a note regarding one of the blogs I recently published on the Oracle Cloud Developer Solutions portal – Building ‘right sized’ Java EE applications with Oracle Application Container Cloud and Wildfly Swarm . You should check it out ! … Continue reading

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

JSON-B test drive using JAX-RS

This is a quick post about JSON-B specification which is due in Java EE 8. It’s main purposes are Provide JSON binding i.e. marshalling and un-marshalling to and from Java objects Eclipselink will server as Reference Implementation Supports Java object … Continue reading

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