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:
This aspect works with Spring Integration 1.0.3.RELEASE version but doens't work with 1.0.4.RELEASE version.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); } }
I also read the change log at url https://jira.springsource.org/secure/IssueNavigator.jspa?reset=true&pid=10121&fixfor=11 286, but found nothing relevant.
Any idea???
Thanks


Reply With Quote