Hi, I don't think it is possible.
The SQL component expects a JDBC datasource, so you'll need to add the appropriate Quarkus JDBC driver extension + configuration. I think you should be able to keep most of the datasource configuration the same as the reactive DS config and add the JDBC specific bits like quarkus.datasource.jdbc.url etc. -- James On Wed, 15 Mar 2023 at 14:50, Mikael Andersson Wigander <mikael.andersson.wigan...@pm.me.invalid> wrote: > I have an application where I'd like to combine Quarkus Reactive Database > client and also using Camel SQL component to query same PostgreSQL database. > > I can't find any documentation where it states how I should define my > datasource(s). > > Normally with only JDBC it works using the "default" datasource but in > this case I mix JDBC and Reactive interfaces and turning of JDBC is not > working > > quarkus.datasource.jdbc = false > > I have also tried to Inject AgroalDatasource and use that as the pointer > to SQL component but it doesn't work. > > It seems that Camel is hard-wired using a JDBC connection but if I define > it I will break my Reactive connection it seems. > > "Caused by: io.quarkus.runtime.configuration.ConfigurationException: > Unable to find a JDBC driver corresponding to the database kind > 'postgresql' for the default datasource. Either provide a suitable JDBC > driver extension, define the driver manually, or disable the JDBC > datasource by adding 'quarkus.datasource.jdbc=false' to your configuration > if you don't need it." > > Any clues? > M