Announcement Announcement Module
Collapse
No announcement yet.
How to configure an interceptor in M6 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Found it

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

    Comment

    Working...
    X