Spring dependency injection doesn't work on my JBossWS/CXF endpoint

Solution Verified - Updated -

Issue

When I configure my Spring application context in jbossws-cxf.xml to inject a Spring bean into my JAX-WS endpoint, it never works.

<bean id="ServiceImpl" class="org.apache.cxf.cxf1332.Cxf1332Impl">
   <property name="testBean" ref="testBean"/>
</bean>

<bean id="testBean" class="org.apache.cxf.cxf1332.TestBean"/>
<jaxws:endpoint id="cxf1332" 
                implementor="#ServiceImpl" 
                address="http://localhost:${testutil.ports.Cxf1332Test}/Cxf1332"/>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.