public void configure()

in jdbc-datasource/src/main/java/org/acme/jdbc/JdbcRoutes.java [23:33]


    public void configure() throws Exception {
        from("timer://insertCamel?period=1000")
                .log("Inserting Camel ${messageTimestamp}")
                .setBody().simple("INSERT INTO Camel (timestamp) VALUES (${messageTimestamp})")
                .to("jdbc:camel-ds")
                .log("Inserted Camel ${messageTimestamp}")
                .setBody().simple("SELECT * FROM Camel")
                .to("jdbc:camel-ds")
                .log("We have ${header[CamelJdbcRowCount]} camels in the database.")
                .log("Camels found: ${body}");
    }