Thanks. I missed that property :-)
On Tue, Jul 8, 2014 at 7:15 PM, Claus Ibsen-2 [via Camel] < ml-node+s465427n5753556...@n5.nabble.com> wrote: > Hi > > See the acceptMessagesWhileStopping option on camel-jms component > > On Tue, Jul 8, 2014 at 12:47 PM, Paolo28 <[hidden email] > <http://user/SendEmail.jtp?type=node&node=5753556&i=0>> wrote: > > > Hi, > > I would like to understand more how Camel handles messages during > shutdown. > > > > In my app. I have just single route which is connected to IBM Websphere > and > > processes given queue. > > One thing we did not fully understand is what is actually happening when > > consuming the queue in TRANSACTED mode and while shutdown signal is > sent. > > > > It seems like during the shutdown period (waiting for inflight messages > to > > complete) some new messages are rejected and picked up again and > rejected - > > however the rejection increases JMSXDeliveryCount header so messages are > > forwarded to BACKOUT queue despite there is nothing wrong with them. > > I would expect that once shutdown is signaled all idle threads are > > immediately stopped so no new work can be accepted (to be then rejected) > and > > only busy threads are allowed to complete their inflight message within > the > > timeout (300 sec.). > > > > Can someone explain if above may be happening and if so advise some way > how > > to address it? The goal is to not increase delivery counts because of > > shutdown - we want to reject/rollback message only in case there is a > > problem (exception thrown during route flow). > > > > Thanks a lot > > P. > > > > > > > > -- > > View this message in context: > http://camel.465427.n5.nabble.com/Message-rejection-during-graceful-shutdown-tp5753530.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: [hidden email] > <http://user/SendEmail.jtp?type=node&node=5753556&i=1> > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > hawtio: http://hawt.io/ > fabric8: http://fabric8.io/ > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://camel.465427.n5.nabble.com/Message-rejection-during-graceful-shutdown-tp5753530p5753556.html > To unsubscribe from Message rejection during graceful shutdown, click > here > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5753530&code=cGFvbG8uc2FnYXRAZ21haWwuY29tfDU3NTM1MzB8MTQ3NDQzOTM3Mg==> > . > NAML > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://camel.465427.n5.nabble.com/Message-rejection-during-graceful-shutdown-tp5753530p5753796.html Sent from the Camel - Users mailing list archive at Nabble.com.