Why doesn't Camel tracing use .toString() ?
Hi! Just simple log strings: 2022-07-05 12:48:49.248 INFO 721618 --- [ main] CardDetailsRouteBuilder:109 : [reload-card ] [Processor@0x20deb6f5 ] Exchange[Id: D52246AE5405B4A-, BodyType: com.pf.product.card.model.card.Card, Body: 942702] 2022-07-05 12:48:49.249 INFO 721618 --- [ main] c.p.p.c.h.c.d.CardDetailsRouteBuilder : Card reloaded: Card(id=942702, idHash=hash-942702, status=CardStatus{CLOSED}, hostStatus=HostCardStatus{FORCE_CANCELLED, hostCode='CHST25'}, referenceNumber=s0Iq, walletId=WL-100100101) The first line is from Camel tracing, the second one is from my own log.info("Card reloaded: " + exchange.getIn().getBody(Card.class)). Why doesn't Camel tracing use .toString() ? -- Vyacheslav Boyko mailto:mail4...@gmail.com
Camel Tracing Route status
Hi everyone, I am new to the Camel and dealing with such a problem. I need tracer of route, but specifically. I need such a camel component which could provide me information whether during some period – message has passed through one route or not. Requirement is that I need to write down log (for example just “information passed”) into database. After it must be monitored if all routes are working or some has stuck. One way I thought is just to add multicast for every route , and send message to some Custom endpoint which will carry out logging. But in this case the whole message will be send to the endpoint while I don’t need it. But isn’t there any camel standard approach to handle this issue? Can someone suggest me solution? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Tracing-Route-status-tp3315011p3315011.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel Tracing Route status
Hi, eventually you can use http://camel.apache.org/wire-tap.html Best regards - Claus On 22.12.2010 14:19, haykz wrote: Hi everyone, I am new to the Camel and dealing with such a problem. I need tracer of route, but specifically. I need such a camel component which could provide me information whether during some period – message has passed through one route or not. Requirement is that I need to write down log (for example just “information passed”) into database. After it must be monitored if all routes are working or some has stuck. One way I thought is just to add multicast for every route , and send message to some Custom endpoint which will carry out logging. But in this case the whole message will be send to the endpoint while I don’t need it. But isn’t there any camel standard approach to handle this issue? Can someone suggest me solution? -- claus straube __ phone+49-89-38157419 mobile +49-176-49673717 web http://www.catify.com office 6. floor, heßstr. 56, 80798 munich __ catify | claus straube, sebastian münz
Re: Camel Tracing Route status
Thanks, that really helped -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Tracing-Route-status-tp3315011p3315042.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel tracing !!
In addition you should just be able to add a -trace option to the invocation of your java command e.g.: java org.apache.camel.spring.Main -trace (note that the -trace must come after the main class declaration as it isn't a standard Java option). More info: http://camel.apache.org/tracer.html (Enabling) Would someone else be able to confirm this behaviour (I've not had time to test). Kind regards, Christopher -- View this message in context: http://camel.465427.n5.nabble.com/camel-tracing-tp475482p3242913.html Sent from the Camel - Users mailing list archive at Nabble.com.
camel tracing !!
I want to trace the exchanges to a JMS queue but what I got is only the headers! My code is : Tracer tracer = new Tracer(); tracer.setDestinationUri(jms:trace); tracer.setTraceOutExchanges(true); DefaultTraceFormatter formatter = new DefaultTraceFormatter(); formatter.setShowOutBody(true); formatter.setShowOutBodyType(true); tracer.setFormatter(formatter); //My Route from(jms:sender) .to(jms:receiver); // the intercept strategy getContext().addInterceptStrategy(tracer); tracing in the log file is ok (i can see the body of the exchange), but when i try to do it on the JMS, it doesn't send it over JMS!! rguig saad -- View this message in context: http://old.nabble.com/camel-tracing-%21%21-tp28879854p28879854.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel tracing !!
Problem Solved !! intercept().to(jms:trace); -- View this message in context: http://old.nabble.com/camel-tracing-%21%21-tp28879854p28880082.html Sent from the Camel - Users mailing list archive at Nabble.com.