-
Notifications
You must be signed in to change notification settings - Fork 76
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
PurgeBatchlet and Wildfly 10 #72
Comments
@jamezp WDYT? As a workaround, PurgeBatchlet can always be extended by applications to customize its behavior. |
From the WildFly side there's not much we can do. Either the
|
Yeah, PurgeBatchlet should change to non-final. Maybe we can try to introspect |
If we split to annotations into a public API the PurgeBatchlet should probably live there too. |
…n WildFly, and add wildfly-jberet-samples/purgeJdbcRepository2.
The sql and sqlFile batch properties of org.jberet.repository.PurgeBatchlet don't work when jberet is used with Wildfly because the JobRepository is an instance of org.wildfly.extension.batch.jberet.job.repository.JdbcJobRepositoryService and not an instance of org.jberet.repository.JdbcRepository.
So, the condition
if (jobRepository instanceof JdbcRepository)
that starts the purge of the persistent store is never true.So far i understand that Wildfly needs to extend the functionality of the JobRepository and since the JdbcRepository is marked as final that is done with a wrapper. I think that this behaviour should be expected and so directly handled inside jberet but I have not still found a good solution.
So, what are your thoughts about this?
Thank you.
The text was updated successfully, but these errors were encountered: