Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Mongo JDBC driver #33547

Open
erikrz opened this issue Dec 19, 2022 · 2 comments
Open

Support Mongo JDBC driver #33547

erikrz opened this issue Dec 19, 2022 · 2 comments
Labels
type: enhancement A general enhancement
Milestone

Comments

@erikrz
Copy link

erikrz commented Dec 19, 2022

Hello, Why I am requesting this?

I am working on implementing Quartz in a microservice, but there is a limitation about using relational Databases; I only have access to NoSQL databases such as Mongo and Redis. Having access to a federated Mongo DB through a Spring JDBC DataSource could greatly simplify the process for me.

So, I would like to have support for the mongo JDBC driver. Two of the main pain points when trying to use it is that the driver is not listed in this enum:

https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java

and here:

https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/quartz/QuartzDataSourceScriptDatabaseInitializer.java

This is the reference site for the mongo JDBC driver: www.mongodb.com/docs/atlas/data-federation/query/sql/drivers/jdbc/connect

This is the maven artifact: https://search.maven.org/artifact/org.mongodb/mongodb-jdbc

For the latest version, which at the time of writing this issue is version 2.0.1, the driver Class Name is: com.mongodb.jdbc.MongoDriver

Any help provided is appreciated. Thanks in advance,
Erik

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 19, 2022
@scottfrederick scottfrederick added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 19, 2022
@scottfrederick scottfrederick added this to the 3.x milestone Dec 19, 2022
@philwebb
Copy link
Member

Adding an entry to our DatabaseDriver class shouldn't be too hard, but I don't see a suitable tables...sql file in org.quartz.impl.jdbcjobstore. It might be worth raising an issue with Quartz to see if they can add a suitable SQL file in https://github.com/quartz-scheduler/quartz/tree/master/quartz-core/src/main/resources/org/quartz/impl/jdbcjobstore

@erikrz
Copy link
Author

erikrz commented Dec 22, 2022

@philwebb Thank you, I followed your suggestion. The Quartz ticket is quartz-scheduler/quartz#875

@wilkinsona wilkinsona changed the title Enhancement - Support Mongo JDBC driver Support Mongo JDBC driver Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

4 participants