Here's a copy of my beans.xml, I configure the interceptors via annotations
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml" /> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/> <import resource="classpath:META-INF/cxf/cxf-extension-xml.xml"/> <!-- JAX-RS --> <jaxrs:server id="folderService" address="/rest"> <jaxrs:serviceBeans> <ref bean="documentServicesFacadeBean" /> </jaxrs:serviceBeans> </jaxrs:server> <!-- JAX-WS --> <jaxws:endpoint id="documentServiceWS" implementor= "#documentServicesFacadeBean" implementorClass="com.gossinteractive.webservices.DocumentFacade" address="/services/DocumentService"> <jaxws:serviceFactory> <ref bean="wsfactory"/> </jaxws:serviceFactory> </jaxws:endpoint> <bean id="wsfactory" class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean" scope="prototype"> <property name="wrapped" value="true"/> </bean> <!-- Facade beans --> <bean id="documentServicesFacadeBean" class="com.gossinteractive.webservices.DocumentFacade" scope="singleton"> <property name="administration"> <ref bean="administrationBean" /> </property> <property name="documents"> <ref bean="documentsBean" /> </property> </bean> <!-- import service bean --> <bean id="importServicesFacadeBean" class="com.gossinteractive.webservices.ImportXMLContentFacade" scope="singleton"> <lookup-method name="retrieveSession" bean="sessionBean" /> <property name="importContentService"> <ref bean="importContentServiceBean" /> </property> </bean> <!-- Server information beans --> <bean id="version" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" scope="singleton"> <property name="locations"> <list> <value>/WEB-INF/classes/service.properties</value> <value>/WEB-INF/classes/license.properties</value> </list> </property> </bean> </beans> wildPengiun wrote: > > I've tried a couple of queries around the subject of REST and interceptors > but with no success. Has anyone actually been able to add their own > customized interceptor into the chain. > > Thanks > -- View this message in context: http://www.nabble.com/Easy-to-Answer-REST-Interceptor-Query-tp20242642p20242885.html Sent from the cxf-user mailing list archive at Nabble.com.
