You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/02/12 08:17:00 UTC

[jira] [Created] (CAMEL-17636) camel-jbang - Auto download of JDBC drivers from beans configurations

Claus Ibsen created CAMEL-17636:
-----------------------------------

             Summary: camel-jbang - Auto download of JDBC drivers from beans configurations
                 Key: CAMEL-17636
                 URL: https://issues.apache.org/jira/browse/CAMEL-17636
             Project: Camel
          Issue Type: New Feature
          Components: camel-jbang
            Reporter: Claus Ibsen
             Fix For: 3.16.0


- route:
    from:
      uri: "sql:SELECT * FROM table1"
      parameters:
        dataSource: "datasource"
      steps:
      - marshal:
          json: 
            library: Jackson
      - log: "${body}"
- beans:
    - name: datasource
      type: "org.apache.commons.dbcp2.BasicDataSource"
      properties:
        username: postgres
        password: postgres
        url: jdbc:postgresql:localhost:5432:demo
        driverClassName: org.postgresql.Driver



--
This message was sent by Atlassian Jira
(v8.20.1#820001)