Announcement Announcement Module
Collapse
No announcement yet.
AOP pattern sometimes calls expression method with another method Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • AOP pattern sometimes calls expression method with another method

    Hi

    My payload is String object, i send the payload on in memory channel and then to filter which calls service which determine if the payload message should be sent to another (jms) channel.
    However sometimes randomly instead of string object in the filterService.process method i receive as payload the return object of the myBeanImpl.startMe method.
    No idea what is happening, any help will be appreciated.

    Code:
    <int:publishing-interceptor id="interceptor" default-channel="inMemoryChannel">
        <int:method 
        	pattern="startMe" 
        	payload="#args.dto.id + ',' + #args.dto.name"
        />
    	</int:publishing-interceptor>
    
    
    	<aop:config>
            <aop:advisor advice-ref="interceptor" pointcut="bean(myBeanImpl)" />
    	</aop:config>
    
    <int:filter 
    	    input-channel="inMemoryChannel"
    		output-channel="filteredChannel" 
    		throw-exception-on-rejection="false"
    		expression="@filterService.process(payload)"
            />
    Last edited by dimitarn; Nov 13th, 2012, 09:19 AM.
Working...
X