| <?xml version="1.0" encoding="UTF-8"?> |
| <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"> |
| |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <reference id="dispatcher" interface="org.osgi.service.event.EventAdmin"/> |
| |
| <bean id="traceHandler" class="org.apache.karaf.decanter.collector.camel.DecanterInterceptStrategy"> |
| <property name="dispatcher" ref="dispatcher"/> |
| </bean> |
| |
| <bean id="tracer" class="org.apache.camel.processor.interceptor.Tracer"> |
| <property name="traceHandler" ref="traceHandler"/> |
| <property name="enabled" value="true"/> |
| <property name="traceOutExchanges" value="true"/> |
| <property name="logLevel" value="OFF"/> |
| </bean> |
| |
| <camelContext trace="true" xmlns="http://camel.apache.org/schema/blueprint"> |
| <route id="test"> |
| <from uri="timer:fire?period=10000"/> |
| <setBody><constant>Hello World</constant></setBody> |
| <to uri="log:test"/> |
| </route> |
| </camelContext> |
| |
| </blueprint> |