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

Mongo support for storing batch metadata? #141

Open
cedricwalter opened this issue Mar 1, 2021 · 2 comments
Open

Mongo support for storing batch metadata? #141

cedricwalter opened this issue Mar 1, 2021 · 2 comments

Comments

@cedricwalter
Copy link

I checked https://github.com/jberet/jsr352/tree/master/jberet-core/src/main/resources/sql and found that there is no mongo.ddl

my jberet.properties

job-repository-type=mongodb

# Optional, default is jdbc:h2:~/jberet-repo for h2 database as the default job repository DBMS.
# For h2 in-memory database, db-url = jdbc:h2:mem:test;DB_CLOSE_DELAY=-1
# For mongodb, db-url includes all the parameters for MongoClientURI, including hosts, ports, username, password,
# database name, and options.  The format of MongoClient uri:
#    mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
# See MongoClientURI javadoc at http://api.mongodb.org/java/current/
# An example of MongoDB db-url = mongodb://localhost/testData
db-url = mongodb+srv://user:password@xxxxxxxx.mongodb.net/database
db-user =
db-password =
db-properties =

Is mongo db supported or did I misconfigured the properties?

Thanks

@chengfang
Copy link
Contributor

JBeret does support a batch job repository backed by mongodb in Java SE standalone mode (not yet in WildFly or JBoss EAP). But since it is document-based nosql data store, there is no ddl for it.

https://github.com/jberet/jsr352/tree/master/test-apps/purgeMongoRepository is an example of using mongo db batch job repository in Java SE application.

@cedricwalter
Copy link
Author

thanks for the comment, somehow still not working, use quarkus-jberet if i use jdbc (to oracle) or mongodb (to atlas)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants