I have a Camel route which Consumes messages from a Queue and stores the message into a Database. Now I wanted to shut down running camel route manually in a graceful manner. I have a RestEndpoint to be triggered whenever I need to stop Camel route. This endpoint should stop the route. But if there is any in-flight message or transaction running during the shutdown it has to be completed successfully without consuming any new messages from from("") endpoint of camel route and shut down after completing inflight message or transaction. Can anyone help me how Can I code this?
Related Questions in APACHE-CAMEL
- How to mock a dynamic endpoint in Apache Camel Spring Boot
- Not able to access route elements in test when using a camel filter
- Apache Camel - Why is Rest OpenAPI appending basePath twice
- A NullPointerException occurs in setupCamelContext method after Camel upgrade from 2.X to 3.2
- Exception attempting to get original in message in apache camel
- Apache camel Quartz start immediatly after application startup and then every hour
- How to delay preMove for each file detected using SFTP?
- Upgrade to Camel 4 causing CXF soap call to fail with "Received RST_STREAM: Stream cancelled"
- Why is apache/camel deleting files after processing
- How to set map in Camel kafka option params
- Consume webClient Flux<DataBuffer> directly by apache camel route
- How can I use apache camel bindy to convert java pojo to fixed length string that has a list attribute?
- Dynamically creating camel file routes
- Is Apache Camel typically deployed as a single application?
- How to check for delimiter in netty tcp connection. And what's the use of delimiter
Related Questions in SPRING-CAMEL
- Not able to access route elements in test when using a camel filter
- Apache camel Quartz start immediatly after application startup and then every hour
- Cannot find method setHandleFault(java.lang.Boolean) in CamelContext in camel 3.x
- SAXParseException with Camel 4
- No value for key "javax.xml.ws.wsdl.service" on org.apache.cxf.binding.soap.SoapMessage with camel version 3.17.0 and cxf 3.5.5
- Saving Dead letter messages in file system/database
- Loading camel routes in camel context runtime from database
- How to set camel json Jackson options autoDiscoverObjectMapper
- Apache Camel route fails to commit transaction
- Autowiring Spring beans inside Camel routes defined through Spring XML
- Apache Camel from with dynamic folder
- Camel doesn't register beans automatically for a Spring Framework (not Spring Boot) annotation-defined application
- How to use <proxy> with Camel 4 and Spring?
- SpringBoot and Camel graceful shutdown
- Camel Context - The dependencies of some of the beans in the application context form a cycle:
Related Questions in CAMEL-JMS
- How can I set the JMS_IBM_MQMD_MsgId header using Apache camel-jms
- Exception when creating Spring Context with JMS Service references
- How to consume messages from Apache Camel JMS as Transacted Batch?
- Camel transacted JMS component doesn't work with Aggregator
- Why are Solace messages hanging on the server on restart after Camel 3 upgrade?
- How to set the JMSCorrelationID and correlate with JMSMessageID with a Camel client and a IBMMQ broker
- Camel 3 - Dynamic uri for deadLetterChannel
- ActiveMQ embedded bridge to Camel JMS bridge
- How to setup transaction in Camel JMS Route
- Camel JMS request-reply with 'n' reply messages
- JMS component's bridge error handler not working
- Issue in publishing IBM MQ JMS Headers after migrating to Camel 3
- Transacted Route and Transactional Endpoints, Transaction commit order
- Polling byte / large messages from ActiveMQ Artemis using Apache Camel ConsumerTemplate
- How to prevent message redelivery from MQ Broker after camel internal redeliveries are successfully processed (transacted camel route)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Below are the few options to control/monitor camel routes
CamelContext API's
Control bus component
JMX API's
You can go through below two sites to get started