Results 1 to 2 of 2

Thread: How to configure an interceptor in M6

  1. #1
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Unhappy How to configure an interceptor in M6

    Refering to the Manual (http://static.springframework.org/sp...adlocalchannel) an interceptor can be configured like this:

    Code:
    <channel id="exampleChannel">
        <interceptor ref="trafficMonitoringInterceptor"/>
    </channel>
    Since M6 it is something like this:

    Code:
    <channel id="exampleChannel">
        <interceptors ??/>
    </channel>
    Unfortunately I have no idea how to add an Interceptor. I have tried this:

    Code:
    <channel id="exampleChannel">
    	<interceptors>
    		<beans:bean id="interceptorsList" class="java.util.ArrayList">
    			<beans:constructor-arg>
    				<beans:list>
    					<beans:ref bean="someChannelInterceptor"/>
    				</beans:list>
    			</beans:constructor-arg>
    		</beans:bean>
    	</interceptors>
    </channel>
    But this doesn't work !

  2. #2
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Default

    Found it

    Code:
    <channel id="exampleChannel">
    	<interceptors>
    		<beans:ref bean="someChannelInterceptor"/>
    	</interceptors>
    </channel>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •