Home » Tag Archives: Jersey (page 2)

Tag Archives: Jersey

Jersey SSE capability in Glass Fish 4.0.1

java-interview-questions-answers

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 many of the components/modules which both include new features and bug fixes of course. Server Sent Events feature in Jersey will be supported with Glass ...

Read More »

Declarative Linking in Jersey 2.9 and up

java-interview-questions-answers

A couple of weeks ago A couple of months ago I was looking how I was going to engineers new REST API for an Oracle Cloud project. Once of the things I had planned to do was to use the declarative link injection created in Jersey 1.x by Marc Hadley. Sadly this hadn’t been forwarded ported yet, so a quick ...

Read More »

Jersey/Jax RS: Streaming JSON

json-logo

About a year ago I wrote a blog post showing how to stream a HTTP response using Jersey/Jax RS and I recently wanted to do the same thing but this time using JSON. A common pattern is to take our Java object and get a JSON string representation of that but that isn’t the most efficient use of memory because ...

Read More »

Jibx Jersey2 Integration

java-interview-questions-answers

Jersey2 provides inbuilt support for Jackson and JAXB. But Jibx is not supported by default. To use Jibx in conjunction with Jersey2, we are taking the XML input as a stream and after receiving the request, we are parsing it using Jibx. But there is actually a better way of achieving the same using MessageBodyReader and MessageBodyWriter APIs. Here is ...

Read More »

Implementing Jersey 2 Spring integration

spring-interview-questions-answers

Jersey is the excellent Java JAX-RS specification reference implementation from Oracle. Last year, when we were starting to build RESTful backend web services for a high-volume website, we chose to use the JAX-RS API as our REST framework and Spring framework for dependency injection. Jersey was our JAX-RS implementation of choice. When the project was started JAX-RS API 2.0 specification ...

Read More »

Playing with JerseyTest (Jersey 2.5.1 and DI)

java-interview-questions-answers

I’m going to try explaining a trivial REST example. The idea is building a basic schema to start playing with Jersey. When I begin to use some framework, I usually develop a test enviroment for failing fast, and that is what I’m going to do. The next example has these features: Jersey 2.5.1 Dependency Injection JUnit for testing     ...

Read More »

Project Student: Webservice Server with Jersey

java-logo

This is part of Project Student. Other posts are Webservice Client With Jersey, Business Layer and Persistence with Spring Data. The second layer of the RESTful webapp onion is the webservice server. It should be a thin layer that wraps calls to the business layer but does not do significant processing of its own. This post has a lot of ...

Read More »

Project Student: Webservice Client with Jersey

java-interview-questions-answers

This is part of Project Student. Other posts are Webservice Client with Jersey, Business Layer and Persistence with Spring Data. The first layer of the RESTful webapp onion is the webservice client. It can be used to mimic web pages containing AJAX content or by programmatic users of the webapp. N.B., the latter might include other webapps, e.g., if you ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close