Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19119

[Docs] Missing examples in Camel JDBC

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      There are several examples missing in jdbc component documentation:

      https://camel.apache.org/components/3.20.x/jdbc-component.html#_samples

      1. First we register our datasource in the Camel registry as testdb:
      2. Then we configure a route that routes to the JDBC component, so the SQL will be executed. Note how we refer to the testdb datasource that was bound in the previous step:
      3. Or you can create a DataSource in Spring like this:
      4. We create an endpoint, add the SQL query to the body of the IN message, and then send the exchange. The result of the query is returned in the OUT body:

      Attachments

        Activity

          People

            Unassigned Unassigned
            Drozdova Lucia Drozdová
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: