Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (40 sloc) 2.13 KB
<?xml version="1.0"?>
<!-- Copyright 2005-2015 Red Hat, Inc. Red Hat 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. -->
<!-- This is the OSGi Blueprint XML file defining the Camel context and routes.
Because the file is in the OSGI-INF/blueprint directory inside our JAR, it
will be automatically activated as soon as the bundle is installed. The root
element for any OSGi Blueprint file is 'blueprint' - you also see the namespace
definitions for both the Blueprint and the Camel namespaces. -->
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<!-- The namespace for the camelContext element in Blueprint is 'http://camel.apache.org/schema/blueprint'.
While it is not required to assign id's to the <camelContext/> and <route/>
elements, it is a good idea to set those for runtime management purposes
(logging, JMX MBeans, ...) -->
<camelContext id="rest-example-context"
xmlns="http://camel.apache.org/schema/blueprint">
<restConfiguration component="jetty" port="9191" />
<rest path="FIS">
<get uri="/{name}">
<to uri="direct:order" />
</get>
</rest>
<route id="rest-route">
<from uri="direct:order" />
<setBody>
<simple>Welcome to: ${headers.name} on Fuse Integration Service in OpenShift</simple>
</setBody>
<log message=">>> ${body} : ${sys.runtime.id}" />
</route>
</camelContext>
</blueprint>