jberet/jsr352

Mongo support for storing batch metadata?

Opened this issue · 2 comments

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

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.

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