That is the Fuse BOM. You can ask to their support.
Inviato da Yahoo Mail su Android
Il lun, 4 feb, 2019 alle 18:13, Rajith Muditha Attapattu<[email protected]>
ha scritto: I get the following exception, for the simple setup below.
(See below for version info)
org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToStartRouteExceptio Failed to start route get1
because of Multiple consumers for the same endpoint is not allowed:
servlet:/api/status?httpMethodRestrict=GET
@Override
public void configure() throws Exception {
// REST set up
restConfiguration()
.component("servlet").port(8081)
.bindingMode(RestBindingMode.xml);
// REST entry point
rest("/api")
.consumes("application/xml")
.produces("application/xml")
.get("/status").to("log:com.mycompany.order?showAll=true&multiline=true");
}
===============================
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-project-bom-camel-spring-boot</artifactId>
<version>3.0.11.fuse-720027-redhat-00001</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
====================================
--
Regards,
Rajith Muditha Attapattu <http://rajith.2rlabs.com/>