I am getting the following tomcat issue when my web app gets redepolyed:
SEVERE: The web application [/myApp] appears to have started a thread named [InactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@40f 92a41] but has failed to stop it. This is very likely to create a memory leak.
This is how I construct the DefaultMessageListenerContainer in the applicationContext.xml:
How do I ensure that the MessageListener thread is properly stopped when the app stops?Code:<bean class="org.springframework.jms.listener.DefaultMessageListenerContainer" id="jmsContainer"> <property name="connectionFactory" ref="cachedConnectionFactory"></property> <property name="destination" ref="myTopic"></property> <property name="messageListener" ref="myMessageListener"></property> <property name="sessionTransacted" value="true" /> <property name="subscriptionDurable" value="true"/> </bean>
Thanks


Reply With Quote
