Jersey + Spring

For the past few days, i have scratched my head finding a good tutorial for Spring + Jersey integration and ebd up with nothing. So finally decided to do it on my own, and for surprise it is much easier than i expected. The simple thing is it relies with the web.xml. Nothing else. I give you a sample web.xml which i used for my project

<?xml version=”1.0″ encoding=”UTF-8″?>
xmlns:xsi=”; xmlns=”; xmlns:web=”; xsi:schemaLocation=”; id=”WebApp_ID” version=”2.5″>

Look at the servlet-name’s. We only need to differentiate the service by servlet-name but still it can be used locally by the project itself.

Simple isn’t it.

Why use Jersey?

  1. Reference Implementation JSR-311 and so lot of documentation, means lot of help from community.
  2. Clean POJO with awesome annotations.

For ex :


Simple and now you know what all these will do.

3.  Easy integration with other frameworks.

now you guys got a reason to go with Jersey. a’ight.


    If you have any queries feel free to write to author

    Fill in your details below or click an icon to log in: Logo

    You are commenting using your account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s