|
Hi Freeman,
probably I'm still doing something wrong or don't understand it correctly... I've created the busCfg.xml file in conf folder: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:http="http://cxf.apache.org/transports/http/configuration" xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <bean id="logInbound" class="org.apache.cxf.interceptor.LoggingInInterceptor"/> <bean id="logOutbound" class="org.apache.cxf.interceptor.LoggingOutInterceptor"/> <bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl"> <property name="inInterceptors"> <list> <ref bean="logInbound"/> </list> </property> <property name="outInterceptors"> <list> <ref bean="logOutbound"/> </list> </property> <property name="outFaultInterceptors"> <list> <ref bean="logOutbound"/> </list> </property> <property name="inFaultInterceptors"> <list> <ref bean="logInbound"/> </list> </property> </bean> </beans> then in servicemix.xml I've added: <import resource="classpath:busCfg.xml"/> and added into lib folder (without those I were getting classNotFoundException): xmlschema-core-2.0.1.jar neethi-3.0.0.jar cxf-api-2.4.4.jar cxf-common-utilities-2.4.4.jar cxf-rt-core-2.4.4.jar And here I'm not sure if it is right and what should I add to servicemix-cxf-bc.cfg file. And what to do to start/register my cxfbusimpl for modules... (servicemix 3.4.0) regards rafal On 26.09.2012 15:00, Freeman Fang wrote: Hi, Yeah, you need add those files(servicemix-cxf-bc.cfg and cxf bus cfg) yourself. ------------- Freeman FangRed Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: http://weibo.com/u/1473905042 On 2012-9-26, at 下午5:42, Rafal Janik wrote:Hi Freeman, thanks a lot, but I can't see that file in conf dir (servicemix 3.4.0). Does it mean I have to create a new one and configure it with the bean: <bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl" /> regards rafal On 26.09.2012 03:39, Freeman Fang wrote:Hi, Yeah, you can configure a bus across component level. Just edit servicemix-cxf-bc.cfg in $SMX_HOME/conf folder, add busCfg property for servicemix-cxf-bc.cfg which point to a cxf bus file where you can add interceptors for this bus and this bus could get picked up by component level. Freeman ------------- Freeman Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: http://weibo.com/u/1473905042 On 2012-9-26, at 上午1:39, Rafal Janik wrote:Hi All, is it possible to add one interceptor for all cxf calls in servicemix 3? regards rafal --
| ||||||||||||||||
Title: Software Mind
- One interceptor for all cxf calls Rafal Janik
- Re: One interceptor for all cxf calls Freeman Fang
- Re: One interceptor for all cxf calls Rafal Janik
- Re: One interceptor for all cxf calls Freeman Fang
- Re: One interceptor for all cxf calls Rafal Janik
- Re: One interceptor for all cxf calls Freeman Fang
- Re: One interceptor for all cxf cal... Rafal Janik
