Hi

On Wed, Jun 8, 2011 at 4:43 PM, Kambam, Mahesh
<[email protected]> wrote:
> Hi,
> Can somebody help me with the issue of integrating CXF RestFull service with 
> Spring DispatcherServlet.
> Here is my issue.
>
> I have a ReST endpoint configured using CXF. I have a requestHandler which 
> intercepts the request and do the authentication/authorization. Once this is 
> done, I would like to have Spring DispatcherServlet to take the control and 
> invoke the appropriate spring controller.
>
> I am having hard time to have CXF Rest features and Spring MVC work 
> together.....any solutions/references/material would be really appreciated.
>

Try injecting ServletContext into RequestHandler,

@Context ServletContext sc;

and then after the authentication/authorization is done, redirect to
Spring DispatcherServlet, by getting
RequestDispatcher from ServletContext. Set an
"http.request.redirected" (=true) property on the current message
before doing the redirection. Let me know if it helps

Cheers, Sergey


> Thanks,
> =Mahesh Kambam.
>



-- 
Sergey Beryozkin

Application Integration Division of Talend
http://sberyozkin.blogspot.com

Reply via email to