Tag Archives: JAX-RS 2.0

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

Asynchronous JAX-RS: basics & gotchas

This blog post covers asynchronous programming support in JAX-RS and some of its potential gotchas along with a sample (maven based) Java EE project on Github Man, I tend to blog a lot about JAX-RS and REST ! Basics of server side async … Continue reading

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

Sharing data between JAX-RS filters

This is a quick post which points out how to share contextual user-defined (custom) data between JAX-RS filters Filter execution It is chain based: one filter gets executed after another Request filters are executed before Response filters If a filter throws an … Continue reading

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

Binding strategies for JAX-RS filters and interceptors

JAX-RS 2.0 defines multiple ways using which server side filters and interceptors can be bound to their target components. Global Binding Named Binding Dynamic Binding Global Binding By default, JAX-RS filters and interceptors are bound to all the methods of resource … Continue reading

Posted in Java EE | Tagged , , | 9 Comments

JAX-RS and JSON-P integration

This short post talks about support for JSON-P in JAX-RS 2.0 JSON-P …? The JSON Processing API (JSON-P) was introduced in Java EE 7. It provides a standard API to work with JSON data and is quite similar to its … Continue reading

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

Handling time outs in Async requests in JAX-RS

JAX-RS 2.0 provides support for asynchronous programming paradigm, both on client as well as on the server end. This post which highlights the time out feature while executing asynchronous REST requests on server side using the JAX-RS (2.0) API Without … Continue reading

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

JAX-RS 2.0 : Server side Processing Pipeline

The inspiration for this post was the Processing Pipeline section in the JAX-RS 2.0 specification doc (Appendix C). I like it because of the fact that it provides a nice snapshot of all the modules in JAX-RS – in the … Continue reading

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

Book Review: RESTful Java Patterns and Best Practices

This is review of the book RESTful Java Patterns and Best Practices     What is this book about and how can you possibly benefit from it ? Its primarily geared towards readers who are interested in taking their REST … Continue reading

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

Java EE: Asynchronous constructs and capabilities

Introduction Java EE has a number of APIs and constructs to support Asynchronous execution. This is vital from a scalability and performance stand point. Let us assume 2 modules which are interacting with each other. When moduleA (the sender) sends a … Continue reading

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

New in JAX-RS 2.0 – @BeanParam annotation

Let's take a look at how the @BeanParam annotation introduced in JAX-RS 2.0 makes our lives a little easier! Continue reading

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