PooledConnectionFactory closes ActiveMQ consumer connection

时间:2018-12-03 12:58:16

标签: java spring server queue activemq

I have a multi-threaded environment, which pings to a certain queue of ActiveMQ frequently, the problem is that i have set concurrentConsumer=4 for DMLC,now when consumer gets messages and it starts processing them after it has completed processing messages it closes the connection with one of the four consumers and consumer count is reduced to 3 from 4 and it continues until consumer count becomes zero.

After restarting the client I'm able to see 4 consumers back again, what is causing the problem here?

Is there any way to identify connection closed with any of the consumer and restart the connection back again?

Note:- Configurations are done using JMS Template.

Thanks

0 个答案:

没有答案