I am using Apache camel route for processing my message.In my user interface I need to show these messages and in detail page I need to show the flow of message within the route
So I planned to use intercept so that before entering every pattern the message will be intercepted a processor will be there to store this in DB.But I am facing an issue in finding out which pattern processed the message lastly.
Like whether the intercept happened after an aggregate,split or process.After which pattern my intercept processor worked.
Is there any way to find out this or its ok if there is any other way to full fill my need to store the details of routing in DB.
Please help
This kind of diagram is what I need to create from the routes.
Thanks in Advance.
Which Enterprise Integration pattern is used in camel
90 views Asked by Abhi At
1
There are 1 answers
Related Questions in ROUTES
- No webpage was found for the web address: https://localhost:7002/Category/Add?area=Admin. Why is my URL generated like ?area=Admin instead of /Admin/
- Symfony Framework - Route cannot be found even if it is defined in Controller
- Linux Networking - Routing packets from one network interface to another
- Redirect outbound traffic to a different port
- API not fetch data with dynamic page NEXT js
- Angular title routing translation
- Slim routing in PHP-DI container
- Laravel form action not accepting $order->id but accepting hard coded value
- Express-Router Library Error: Route.post() requires a callback function but got a [object Object]
- Vercel Problem | 404: NOT_FOUND Code: NOT_FOUND
- React Routes not Rendering Components
- data transfer to ip address using osi model
- `UseRouter` Caches the Cookies should I use `redirect`
- No connection could be made because the target machine actively refused it. (localhost:80) when attempting to test routes with TestServer
- Problem in hosting React App with react-router-dom on IIS Server
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-SQL
- Camel Quarkus SFTP Idempotent Consumer "this.transactionTemplate is null" error
- Proper way, in Spring Boot Camel XML/YAML route, to gather info for parameterized SQL call
- not found in bean: org.apache.camel.converter.stream.InputStreamCache
- How to Increase RabbitMQ + SQL Consumer Processing Speed in Apache Camel?
- How to convert a Camel body to one of its properties
- Camel SQL - Individual Insert to Batch
- Getting error with sql named query when trying a batch insert
- Set Headers in MULTICAST camel route
- Camel Apache SQL
- Camel MessageID are different route transformation flow
- replay failure messages whenever I want in any time
- Camel Karaf (OSGI Blueprint) SQL datasource
- Load CSV to database using Apache Camel Spring XML (CSV to SQL components)
- Which Enterprise Integration pattern is used in camel
- SQL Component internally resets CamelSqlUpdateCount to zero
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?
Popular Tags
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)
You can get some details from
CamelMessageHistoryexchange property which is a list ofDefaultMessageHistoryobjects. These contain routeId and some details about the endpoint node like its id. If you're usinginterceptFromcamel stores the intercepted endpoint uri toCamelInterceptedEndpointheader.Intercept and print history
This however wont help you much as the information is fairly limited and many patterns like split that create a new exchange with their own new history. However for these you could look if headers like
CamelSplitIndexhave been set and if it has then determine from that that split has occurred.You could keep things simple and track the state of the exchange using events instead. Just write a processor or component that you can use to write/store what happened and when during the routing. You can use
breadcrumbIdas unique id for exchange as this persists even after something like split.The processor or custom component could then simply stream these events to some file or store them to a local database like sqlite for further processing. Avoid sending them straight to external database or service to minimize impact on actual routes.
Have you looked in to Hawtio? It does a lot of this already. I am running Hawtio with Apache Karaf and it provides me with Route diagrams and fairly detailed profiling data for routes, endpoints and whatnot. Its also open source so you can modify it or use it as reference for your own application.
If you prefer to do something similar yourself you can look in to using JMX to manage and monitor camel application. For my understanding Hawtio uses it under the hood to get more information about applications running inside JVM.