Results 1 to 1 of 1

Thread: AOP pattern sometimes calls expression method with another method

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Posts
    7

    Default 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 at 09:19 AM.

Posting Permissions

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