I am trying to build a Jersey Based Rest Web servuce with Spring but I couldn't find an example online that works... Could someone share a simple sample if possible?
Thanks
Have a nice day
There are probably tons of mistakes. I couldn't find an example I could easily understand so I resorted to pulling out pieces of code from various examples and patching it together, Frankenstein Style Any help is appreciated.
Yes, but what would Spring add that Jersey/JAX-RS doesn't do? In other words, what exactly are you trying to implement with Spring but struggling to get done? Spring doesn't do REST, Jersey/JAX-RS does. You should have no problems using Spring's DI in your JAX-RS classes, if that's what you mean.
Ulf Dittmer wrote:Yes, but what would Spring add that Jersey/JAX-RS doesn't do? In other words, what exactly are you trying to implement with Spring but struggling to get done? Spring doesn't do REST, Jersey/JAX-RS does. You should have no problems using Spring's DI in your JAX-RS classes, if that's what you mean.
That's actually inaccurate. Spring MVC does do REST. Called Spring MVC REST. I find it much easier than JAX-RS. But that is my opinion.