According to:
http://old.nabble.com/Re:-Accessing-jax-rs-(CXF)-MessageContext-outside-service-class-(in-aspect)-in-Spring-(2.5)-p26030115.html

it works if you make it a scoped-proxy.

Dan


On Tue December 15 2009 10:18:27 am Yognhe wrote:
> Hi,
> 
> I tried to create a Spring bean in cxf.xml like this:
> 
> <bean id="cxfMessage" class="org.apache.cxf.phase.PhaseInterceptorChain"
> factory-method="getCurrentMessage" scope="request"/>
> 
> And it does not work. I am wondering if CXF supports the scope of Spring
> bean. If does, how should I configure CXF to create a Spring bean with a
> scope.
> 
> Thanks,
> Yonghe
> 

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to