jbang/xml-and-bean/route.camel.xml (12 lines of code) (raw):

<?xml version="1.0" encoding="UTF-8"?> <!-- camel-k: language=xml --> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://camel.apache.org/schema/spring" xsi:schemaLocation=" http://camel.apache.org/schema/spring https://camel.apache.org/schema/spring/camel-spring.xsd"> <!-- Write your routes here, for example: --> <route> <from uri="timer:xml?period={{time:1000}}"/> <!-- invoke java bean with id myBean --> <to uri="bean:myBean?method=hello"/> <log message="${body}"/> </route> </routes>