[JAX-RS] Simple Server and Client using Jersey 1.19 Client API (JSON)

Using Jersey 1.19. in general 1.xx vs 2.xx – the package names differ and some of the Client API methods and ways to get the Client.
Note that the server here is a Dynamic Java Application running on Glassfish 4 so the dependencies are added automatically while the client is a maven project.

1. The server Application:

2. Server Resource:

3. The bean:

4. Client (a simple Maven project):

5. The bean on the client side (ideally need to share it somehow)

6. Client pom.xml


Leave a Reply

Your email address will not be published. Required fields are marked *