camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fxthomas <felix.tho...@gmail.com>
Subject JMS Route not shutting down (in hang mode forever)
Date Tue, 08 Mar 2016 10:57:06 GMT
hello, 

    I have configured the defaultshutdown timeout & configured the route as
below , but the the route does not stop properly . I can see the
DefaultShutdownStrategy being called but it not forcing to close the route. 

- JmsConsumer[TESTQ]] (  DefaultShutdownStrategy.doShutdown          : 230)
| Timeout occurred during graceful shutdown. Forcing the routes to be
shutdown now. Notice: some resources may still be running as graceful
shutdown did not complete successfully.
2016-03-08 11:46:56,984  WARN [Camel (camel-1) thread #2 - ShutdownTask] ( 
DefaultShutdownStrategy.run                 : 639) | Interrupted while
waiting during graceful shutdown, will force shutdown now.
2016-03-08 11:46:56,985 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.stop                : 127) |
Stopping listenerContainer:
org.apache.camel.component.jms.DefaultJmsMessageListenerContainer@7d47e9b
with cacheLevel: 3 and sharedConnectionEnabled: true
2016-03-08 11:46:56,985  INFO [Camel (camel-1) thread #2 - ShutdownTask] ( 
DefaultShutdownStrategy.run                 : 668) | Route: ProcessQueue
shutdown complete, was consuming from: Endpoint[wmq://queue:TESTQ]
2016-03-08 11:46:56,986 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.stopSharedConnection: 156) |
Stopping shared connection on listenerContainer:
org.apache.camel.component.jms.DefaultJmsMessageListenerContainer@7d47e9b
2016-03-08 11:46:56,986 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.destroy             : 141) |
Destroying listenerContainer:
org.apache.camel.component.jms.DefaultJmsMessageListenerContainer@7d47e9b
with cacheLevel: 3 and sharedConnectionEnabled: true
2016-03-08 11:46:56,986 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.shutdown            : 215) |
Shutting down JMS listener container
2016-03-08 11:46:56,987 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.doShutdown          : 557) |
Waiting for shutdown of message listener invokers
2016-03-08 11:46:56,987 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.doShutdown          : 563) |
Still waiting for shutdown of 1 message listener invokers
2016-03-08 11:46:57,987 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.doShutdown          : 563) |
Still waiting for shutdown of 1 message listener invokers
2016-03-08 11:46:58,987 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.doShutdown          : 563) |
Still waiting for shutdown of 1 message listener invokers
2016-03-08 11:46:59,987 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.doShutdown          : 563) |
Still waiting for shutdown of 1 message listener invokers
2016-03-08 11:47:00,987 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.doShutdown          : 563) |
Still waiting for shutdown of 1 message listener invokers
2016-03-08 11:47:01,987 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.doShutdown          : 563) |
Still waiting for shutdown of 1 message listener invokers
2016-03-08 11:47:02,987 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.doShutdown          : 563) |
Still waiting for shutdown of 1 message listener invokers
2016-03-08 11:47:03,987 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.doShutdown          : 563) |
Still waiting for shutdown of 1 message listener invokers
2016-03-08 11:47:04,987 DEBUG [Camel (camel-1) thread #1 -
JmsConsumer[TESTQ]] (sMessageListenerContainer.doShutdown          : 563) |
Still waiting for shutdown of 1 message listener invokers


Configuration:- 

 <bean id="shutdown" class="org.apache.camel.impl.DefaultShutdownStrategy">  
        <property name="timeout" value="5"/>
  </bean> 

<route routePolicyRef="routeQueuePolicy"   id="ProcessQueue">
    <from uri="wmq:queue:TESTQ"/>
           <doTry>
                 <to
uri="bean:routeBean?method=parseQueueMessage(${body},'monitorbean')"/>
                  <doCatch>
                       <exception>java.lang.Exception</exception>
                       <handled><constant>false</constant></handled>
                       <process ref="stopRouteProcessor"/>
                  </doCatch>
                 <aggregate strategyRef="queueBatchStrategy"
completionTimeout="3000" completionSize="50">
                 
        			<correlationExpression>
          				<constant>true</constant>
        			</correlationExpression>
                    <to
uri="bean:routeBean?method=processQueueMessage('monitorbean')"/>
                 </aggregate>
       </doTry>
  </route>

Any Ideas ?




--
View this message in context: http://camel.465427.n5.nabble.com/JMS-Route-not-shutting-down-in-hang-mode-forever-tp5778736.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message