users@jersey.java.net

Implicit MVC and Jersey Spring Integration

From: Richard Hancock <breakerbay_at_hotmail.com>
Date: Mon, 26 Jan 2009 21:43:22 +1300

Hi Guys,

I was planning to use Jersey implicit MVC with Spring, including Spring Security, but am not sure to the best way to do this.configure implicit MVC to work with Jersey Spring Integration?

 The implicit MVC works fine when configured with the Jersey Web Application Servlet but when I try to use the Jersey Spring Integration Servlet the implicit MVC stops working.
                   
    <servlet>
        <servlet-name>Jersey Web Application</servlet-name>
        <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
            ...
        <init-param>
            <param-name>com.sun.jersey.config.feature.ImplicitViewables</param-name>
            <param-value>true</param-value>
        </init-param>
            ...
    </servlet>



    <servlet>

        <servlet-name>Jersey Spring Integration</servlet-name>

        <servlet-class>

            com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>

            ...

    </servlet>
    
What is the best way to set up implicit MVC with Spring, and in particular with Spring Security?

Cheers,

Richard.


_________________________________________________________________
Twice the fun—Share photos while you chat with Windows Live Messenger.
http://download.live.com