We would be deploying Spring integration code to a web application running on a multiple tomcat servers. We have a JMS Outbound gateway like below. The question is whether it is possible that the message sent by one of the servlet container JVM (say tomcat1) can be received by another servlet container JVM (say tomcat2)? In our case, in the spring integration flow, we are splitting the message into multiple messages and sending it to JMS Outbound Gateway and once the response are received, we would be using aggregating the message back on the same JVM.
So it would become a problem if the response is received by other JVM. Does anyone know about this?
<int-jms:outbound-gateway id="wldpJMSGateway"
connection-factory="cachedConnectionFactory"
extract-reply-payload="true"
request-channel="wldpJMSGatewayChannel"
request-destination-name="WLDP.REQUEST.QUEUE"
reply-channel="wldpJMSResponseChannel"
reply-destination-name="WLDP.RESPONSE.QUEUE"
receive-timeout="5000"
extract-request-payload="true"
/>