Hi
On 15/06/12 16:10, gigi2 wrote:
Hi, Sergey,
Thank you very much. I have that figured out. You are right. A setter should
resolve the problem.
But now I have run into another similar but different situation. Trying to
autowire a jax-rs message object into my Spring AOP, here is how the message
bean is defined in my config
<bean id="currentMessage" class="org.apache.cxf.phase.PhaseInterceptorChain"
factory-method="getCurrentMessage" scope="request">
<aop:scoped-proxy/>
</bean>
my Spring AOP is of singleton scope. When I deploy, i got a
IllegalArgumentException. I've added the RequestContextListener to my
web.xml. Still the same.
Not sure why that is the case. But why would you want to do it if you
can now inject a jaxrs MessageContext ?
Cheers, Sergey
May I have some hints? Very grateful for your kind helps
--
View this message in context:
http://cxf.547215.n5.nabble.com/Accessing-MessageContext-when-spring-AOP-is-enabled-tp4392702p5709877.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com