'replacement for camel cxfbean
we are currently struggling with updating our legacy service (non spring, jee + deltaspike, weld) and it's dependencies. We try to upgrade from camel 2.16.2 to 3.x (due to java 11 compatibility).
We have already read through the migration guide several times, but could not find any reference to your replacement of the cxfbean component.
e.g.:
public class MonitoringRoute extends RouteBuilder {
@Override
public void configure() throws Exception {
from("servlet:///monitoring?matchOnUriPrefix=true")
.to("cxfbean:monitoringService")
.setId("MonitoringRoute");
}
}
@Named("monitoringService")
public class MonitoringService implements MonitoringAPI {
@Override
public String status() {
return "OK";
}
}
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
public interface MonitoringAPI {
@GET
@Path("status")
@Produces(MediaType.TEXT_PLAIN)
String status();
}
We already tried cxfrs:monitoringService
, but this will led to "Uri is not absolute" exception.
Any idea to replace cxfbean properly?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|