To further test the new resource provider SPI I described earlier I thought I'd try building a new resource provider that defers to Spring for resource creation. Note that I've never used Spring before so if there are better ways to accomplish what I did please let me know. I also ran into a problem that limited the integration more than I'd prefer (details at the end of this post). The Jersey...
A couple of video's demonstrating NetBeans 6 support for creating Jersey-based Web services:
Part 1: Building and Deploying
Part 2: Testing and Invoking
This is an up-to-date version of the demo we showed in our JavaOne session this year.
I recently merged the experimental "resourcefactory" branch back into the main Jersey trunk. The new code includes the following features and changes:
A change to the default resource object lifecyle from singleton to per-request
Support for non-empty resource class constructors
A new SPI for plugging-in new resource providers
Details on these changes below
Prior to the merge...