Thanks, i believe it is working now.

Unfortunately i don’t think logging to log files will do it for me.

My goal is to create an api endpoint that can retrieve the traced
messages from the Backlog Queue.
In the api endpoint i have access to the Camel Context (and thus the
backlogTracer), but i’m looking for a way to deploy the blueprint xml
with the backlog tracer enabled.

I tried setting the trace=“true” property to see if it enables the
backlogTracer on startup, but with no luck.

2017-12-20 12:37 GMT+01:00 Claus Ibsen <claus.ib...@gmail.com>:
> Hi
>
> Replying again as there may be an issue with Joery seeing the mails from here
>
> If you just want to have tracing to log files, then using "trace=true"
> in <camelContext> is not deprecated and you can use that.
>
> On Tue, Dec 19, 2017 at 5:09 PM, Joery Vreijsen <jhjvreij...@gmail.com> wrote:
>> Hi There!
>>
>> First of all this is my first time posting in the the mailing list, so
>> any feedback is appreciated.
>>
>> Im currently experimenting with the Backlog Tracer as we are currently
>> upgrading our application to Camel 2.20.1 and the “old” Tracer is
>> Deprecated.
>> In the documentation (http://camel.apache.org/backlogtracer.html) i
>> was looking for an example to invoke the Backlog Tracer in a Blueprint
>> xml.
>>
>> This is what i tried (as it was working for the Tracer):
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
>>            xmlns:camel="http://camel.apache.org/schema/blueprint";
>>            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>            xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
>>            http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd";>
>>
>>     <bean id="backlogTracer"
>> class="org.apache.camel.processor.interceptor.BacklogTracer">
>>         <property name="enabled" value="true"/>
>>     </bean>
>>
>>     <camelContext id=“context-1"
>> xmlns="http://camel.apache.org/schema/blueprint”>
>>         // Example route
>>         <route id=“route-1”>
>>             <from uri="direct://in"/>
>>             <to uri="direct://out"/>
>>         </route>
>>     </camelContext>
>>
>> </blueprint>
>>
>> Unfortunately this results in the blueprint saying the BacklogTracer
>> is already instantiated.
>> org.osgi.service.blueprint.container.ComponentDefinitionException:
>> Name backlogTracer is already instanciated as null and cannot be
>> removed.
>>
>> Any suggestions how to enable the Backlog Tracer by default in a blueprint 
>> xml?
>>
>> All help is appreciated!
>>
>> Greetings,
>>
>> - Joery
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to