Can the GatewayProxyFactoryBean return a null response if the request timed out? Similar to the MessageChannelTemplate. Before the response message gets to the responseChannel I have a interceptor which checks if the message is valid or not, and if its invalid I have it return null to prevent further processing. I then expect the responseChannel to time out if the interceptor has prevented the further processing and the gateway to return null. Am I doing this correctly?
Message<?> response = gateway.sendMessage(request);
can the message payload here ever be null here?
<gateway id="InBoundGateway"
service-interface="com.ml.bti.cmcentral.messagebus.iProces sMessageGateway"
default-request-channel="requestChannel"
default-reply-channel="responseChannel"
default-reply-timeout="1000"
/>


Reply With Quote