G Quintana
G Quintana

Reputation: 4667

Custom JobRepository in JBeret for Quarkus

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?

Upvotes: 0

Views: 304

Answers (1)

G Quintana
G Quintana

Reputation: 4667

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.

Upvotes: 1

Related Questions