Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
RLütkenhaus
Contributor
Contributor

Integration of pure Java Camel route into Talend

Hi,

is there a way to write an Apache Camel route completely in pure Java and then integrate the jar into a Talend route?

For example, this would be for the code I would like to include:

@Component("myroute")
public class MyRouteBuilder extends RouteBuilder {

@Override
public void configure() {

restConfiguration().component("netty-http").port(8080);

rest("/api/items")
.patch("/{id}")
.consumes("application/json")
.produces("application/json")
.to("direct:patchItem");

from("direct:patchItem")
.log("PATCH request for item ${header.id} with body: ${body}")
// Hier kannst du die Patch-Logik implementieren
.setBody(simple("{ \"status\": \"updated\", \"id\": \"${header.id}\" }"))
.to("file:output?fileName=items.txt");
}
}

Thanks for any suggestions !

Regards,

Rainer

Labels (2)
0 Replies