On Wednesday 24 March 2010 9:13:59 am Nguyen Tien Luong wrote: > Hello everybody, > > In order to develop a client CXF application with Spring, I have to declare > some Spring beans ( declaration in client-beans.xml for example ). > > So my question is: > > - Is there any way to use the same Spring context of CXF? If yes, how? > - My client application will use JMS as transport layer. After some > research, I found in the sub project of CXF ( rt/transports/jms ) only one > XML file which contain spring bean's declaration, it's > cxf-extension-jms.xml , so I xant to know when this file is loaded in > the spring context of CXF >
NORMALLY, you would bring the CXF stuff that you need into the same context as the rest of your beans. Basically, in your spring xml where you have your stuff, you would include the META-INF/cxf/cxf*.xml files that you need. Normally, that would be cxf.xml (the core stuff), cxf-extension-soap.xml (for the soap binding), cxf-extension-jms (if you need jms, http and/or cxf- servlet.xml for http transports). Then define all your jaxws:endpoints and such in the same context as all your other things. -- Daniel Kulp [email protected] http://dankulp.com/blog
