0
votes

Is it possible to customize shutting down of mule such that it stops the jms inbound first than other services. The problem is when the mule is shutting down it pickups the message from jms queue for processing which fails in later stages because the other services have been shut down by mule. The mule shuts down the services/connectors in random order. Is there a way to customise mule to stop listening to inbound queue then stop other services ?

2

2 Answers

1
votes

I would try with a shutdown context notification, if you do a blocking one stopping your inbound endpoints and assuming your don't reenter in your flow, you should get your behaviour.

0
votes

I am thinking of another way to stop inbound connectors , and then restarting them back , once the outbound services are up. You can get the handle to the connectors through the contexts. All code goes in exception handling.