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. 

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.

Reply via email to