Hello,
I am using the JMS Outbound Gateway to send messages from a client to the server. To keep it simple I set up one Queue for the requests. The gateway is set up so that the answer will be sent through a special Queue for each client.
Example:
Client A:
Client B:Code:<int-jms:outbound-gateway id="jmsout" request-channel="toJmsChannel" reply-channel="jmsReplyChannelUnfiltered" request-destination="requestQueue" reply-destination="clientAQueue"/>
The server receives the requests through a JMS Inbound Gateway.Code:<int-jms:outbound-gateway id="jmsout" request-channel="toJmsChannel" reply-channel="jmsReplyChannelUnfiltered" request-destination="requestQueue" reply-destination="clientBQueue"/>
When I run this configuration everything works fine except Spring does not close the connection to the client Queue on the client side after receiving and processing the message.Code:<int-jms:inbound-gateway id="jmsin" request-destination="requestQueue" request-channel="fromJmsChannel" />
Is there a chance to close these connections? I am afraid of killing my ActiveMQ server with too many consumers on the client queues.


Reply With Quote
