Announcement Announcement Module
Collapse
No announcement yet.
Spring Integration 1.0.4-RELEASE and AspectJ problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Integration 1.0.4-RELEASE and AspectJ problem

    HI all, i recently upgraded the version of spring integration from 1.0.3.RELEASE to 1.0.4.RELEASE into my application.
    The entry point of my application are two endpoint:
    • Http
      Code:
      	<http:inbound-gateway id="HttpInbound"
      		request-channel="httpRequestChannel"
      		reply-channel="httpReplyChannel"
      		request-mapper="neopiuHttpRequestMapper" 
      		view="neopiuDefaultView"
      		reply-key="replyNeopiuKey" 
      		extract-reply-payload="false"
      		supported-methods="POST" />
    • WS
      Code:
      <ws:inbound-gateway id="wsInboundGateway" 
      		request-channel="wsRequestChannel"
      		reply-channel="wsReplyChannel"
      		extract-payload="true"				
      	/>

    On these endpoints i have configured the following aspect:
    Code:
    package it.neopiu.aop;
    
    import org.aspectj.lang.JoinPoint;
    import org.aspectj.lang.annotation.After;
    import org.aspectj.lang.annotation.Aspect;
    import org.aspectj.lang.annotation.Before;
    import org.aspectj.lang.annotation.Pointcut;
    
    @Aspect("percflow(inboundEndpointPointcut())")
    public class TracingAdvice {
    	
    	/**
    	 * Defines the intercepting of handleRequest method calls.
    	 */
    	@Pointcut("execution(* org.springframework.integration.http.HttpInboundEndpoint.handleRequest(..)) "
    			+ "|| execution(* org.springframework.integration.ws.SimpleWebServiceInboundGateway.invoke(..))")
    	public void inboundEndpointPointcut() {
    	}
    
    	@Pointcut("execution (* org.springframework.integration.http.HttpInboundEndpoint.handleRequest(..)) "
    			+ "|| execution(* org.springframework.integration.ws.SimpleWebServiceInboundGateway.invoke(..))"
    			+ "|| !within(it.neopiu.aop..*)")
    	public void methodExecutionPointcut() {
    	}
    
    	@Before("methodExecutionPointcut()")
    	public void profileBefore(JoinPoint thisJoinPoint) {
    
    		String thisJoinPointString = thisJoinPoint.toString();
    		
    		System.out.println("before " + thisJoinPointString);
    	}
    
    	@After("methodExecutionPointcut()")
    	public void profileAfter(JoinPoint thisJoinPoint) {
    		
    		String thisJoinPointString = thisJoinPoint.toString();
    		
    		System.out.println("after " + thisJoinPointString);
    	}
    }
    This aspect works with Spring Integration 1.0.3.RELEASE version but doens't work with 1.0.4.RELEASE version.
    I also read the change log at url https://jira.springsource.org/secure...1&fixfor=11286, but found nothing relevant.

    Any idea???

    Thanks
Working...
X