|
From: Ian B. <ibu...@re...> - 2008-06-03 01:36:01
|
I am having some trouble connecting the dots. From the JAX-RS Spec it's clear that normally a new Resource Class is created for each request. I have convinced myself that the Resource Classes are something like endpoints or Struts actions; they get their model from the Provider and the scoping information from the injected annotation arguments. Coming from a Spring and web service background this is where I'd normally wire in a domain repositories and services. This doesn't seem to fit the model of having a new Resource Class per request. Can someone explain the right mental model for this? Thanks, Ian. |