Hello, I have two questions on my own DoubleIt tutorial--in particular the
portion[1] where you can choose a default WEB-INF/cxf-servlet.xml config
file for your web service provider, or explicitly name your config file[2]
(say ws-beans.xml) in your web.xml. Just to confirm (and I may be incorrect
on these points):
1.) If you use the default filename cxf-servlet.xml, you do *not* need to
explicitly list the <import resource="..."/> as you do in the ws-beans.xml
file as shown in [1]. With cxf-servlet.xml, *all* of the imports are
automatically brought in, and with an explicitly specified ws-beans.xml
file, *none* of the imports are brought in unless you explicitly specify
them--is that correct?
2.) (And this related to (1) above) -- Looking at the CXF source code,
class org.apache.cxf.transport.servlet.CXFServlet's loadAdditionalConfig
method[3] is where the code seems to look for cxf-servlet.xml if no other
config file is specified in the web.xml:
String location = servletConfig.getInitParameter("config-location");
if (location == null) {
location = "/WEB-INF/cxf-servlet.xml";
}
This is where I'm getting confused though. If this is the code that
activates cxf-servlet.xml by default if nothing is specified in the web.xml,
why does this cxf-servlet.xml file *not* need to have the <import
resource="..."/> explicitly specified? AFAICT, there should be no
difference in requirements over whether imports need to be specified or not
between a default cxf-servlet.xml and an explicitly specified ws-beans.xml.
Thanks,
Glen
[1] http://www.jroller.com/gmazza/date/20080417#WFstep8
[2] http://www.jroller.com/gmazza/date/20080417#WFstep7
[3] http://tinyurl.com/4732dk
--
View this message in context:
http://www.nabble.com/Need-clarification-on-cxf-servlet.xml-config-file.-tp19598828p19598828.html
Sent from the cxf-user mailing list archive at Nabble.com.