Hi.

I want to put my CXF spring configuration in my Spring servlet context
file and not my global Spring web application context, but if I do
that, the CXF servlet doesn't pick up my endpoints because the
components are wired before reading the servlet context.

Say, for example, I've got the configuration laid out by
http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html.
And I've got my files like this:

WEB-INF/applicationContext.xml
WEB-INF/cxf-servlet.xml

Spring says that the beans in each of these files are loaded into
separate application contexts, but the specific servlet one is a child
of the global applicationContext.xml one.

If I have my JAX-WS beans declared in cxf-servlet.xml, those beans
don't get picked up because the bus, transport factories, etc are
loaded in the global application config (see
CXFServlet.updateContext() method).

Why this behavior?

-Ryan

Reply via email to