Custom JobRepository in JBeret for Quarkus

136 views Asked by At

As described in Quarkus JBeret documentation, it is possible to use in-memoryor jdbc as values forquarkus.jberet.repository. I can see corresponding io.quarkiverse.jberet.runtime.JBeretInMemoryJobRepositoryProducerand io.quarkiverse.jberet.runtime.JBeretJdbcJobRepositoryProducer classes.

I would like to implement my own DynamoDB JobRepository and plug it in JBeret. Is it possible to plug a custom JobRepository in JBeret?

I can see InfinispanRepository and MongoRepository exists (but not available in Quarkus). Is it possible to implement a DynamoDB based JobRepository?

1

There are 1 answers

0
G Quintana On

As of Quarkus JBeret 2.0.1, it's not possible for 2 reasons:

  • The list of available JobRepositories is limited to jdbc/in-memory in quarkus-jberet-deployment code
  • The org.jberet.repository.AbstractPersistentRepository class is not designed to be extended: abstract methods are package-protected and can not be overriden outside of org.jberet.repository package.