Take a look at the camel-quarkus JDBC extension integration test:

https://github.com/apache/camel-quarkus/tree/master/integration-tests/jdbc

You can use Quarkus properties to define the datasource in
application.properties:

https://github.com/apache/camel-quarkus/blob/master/integration-tests/jdbc/src/main/resources/application.properties#L21-L23

Then you can refer to the datasource name in your endpoint URI:

https://github.com/apache/camel-quarkus/blob/master/integration-tests/jdbc/src/main/java/org/apache/camel/quarkus/component/jdbc/CamelResource.java#L71

--
James


On Mon, 30 Nov 2020 at 14:01, Mikael Andersson Wigander
<mikael.andersson.wigan...@pm.me.invalid> wrote:
>
> How do I declare and inject a datasource for Camel JDBC using Quarkus?
>
> /M

Reply via email to