users@jersey.java.net

Spring request scoped bean plugged into Jersey Spring app

From: Ross Mcdonald <rossajmcd_at_yahoo.co.uk>
Date: Mon, 11 Jan 2010 20:00:55 +0000

Hi Guys.

Hoping someone can advise me how to do something, or an alternative approach.

I have a pretty standard Jersey Spring app, using:

com.sun.jersey.spi.spring.container.servlet.SpringServlet

in my web.xml.

I would like to take an HTTP header, retrieved in my Resource, and set the value of a variable in a request scoped spring bean, and then pull this from some spring services, also wired into my resource. This will cut out the need to pass parameters around.

I am having trouble integrating Request scope capabilities in this way, can anyone point me to an easier alternative?

Thanks for you help in advance,

Ross