users@jersey.java.net

Re: [Jersey] Jersey Client and Spring

From: ?? <wolf.deng_at_gmail.com>
Date: Wed, 17 Dec 2008 13:58:44 +0800

web.xml
<listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener
        </listener-class>
</listener>

<servlet>
        <servlet-name>rest-servlet</servlet-name>
        <servlet-class>
                com.sun.jersey.spi.spring.container.servlet.SpringServlet
        </servlet-class>
        <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
        <servlet-name>rest-servlet</servlet-name>
        <url-pattern>/</url-pattern>
</servlet-mapping>



On Wed, Dec 17, 2008 at 2:57 AM, Andrew Ochsner
<aochsner_at_cs.stanford.edu> wrote:
> Hi all:
>
> Hoping this is easy, but is there any easy, straighforward way to configure
> a Client or a WebResource via Spring? I see references to IOC support, but
> it's not clear to me if there is a path. I want to configure the endpoints
> in Spring xml and have the class that wants to make REST calls be rather
> ignorant.
>
> Thoughts?
>
> Thanks
> Andy O
>