On Tuesday, May 24, 2011 5:23:14 AM meteora28 wrote: > Thank you for your answer. I used Google and found more information about > xml catalogs. > > I created a catalog, created my sources new with the catalog as parameter > (-catalog ...) and put the catalog and all necassary references to my > project in a folder called "META-INF/jax-ws-catalog.xml".
When using -catalog, it can be placed anywhere. The META-INF stuff is for runtime. > But I think there is a step missing. How does my application "know" where > to find the catalog and how to use it? Why does wsdl2java not replace the > elements from the catalog directly? Per the JAX-WS spec, when CXF starts up, we search the classpath for META- INF/jax-ws-catalog.xml files and automatically configure those catalogs in. Thus, if your jar/application has the catalog there, we'll grab it and use it at runtime. For build time, the -catalog flag on wsdl2java is fine. > All in all, I am not sure, if I understood the whole thing. Maybe you can > help me a little bit? Or send me to the right path? > > Thank you again! > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/CXF-default-imports-tp4411959p4421537.html > Sent from the cxf-user mailing list archive at Nabble.com. -- Daniel Kulp [email protected] http://dankulp.com/blog Talend - http://www.talend.com
