We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can't wrap the JobRepository used by JobBuilderFactory or StepBuilderFactory, the default one is being used.
JobRepository
JobBuilderFactory
StepBuilderFactory
Same type of a problem as presented here #816 .
related Sleuth code: https://github.com/spring-cloud/spring-cloud-sleuth/blob/issues_%231904_batch_with_job_repository/spring-cloud-sleuth-autoconfigure/src/main/java/org/springframework/cloud/sleuth/autoconfig/instrument/batch/TraceBatchAutoConfiguration.java#L57-L60
AbstractBatchConfiguration creates JobBuilderFactory and StepBuilderFactory as fields.
AbstractBatchConfiguration
@Override public void afterPropertiesSet() throws Exception { this.jobBuilderFactory = new JobBuilderFactory(jobRepository()); this.stepBuilderFactory = new StepBuilderFactory(jobRepository(), transactionManager()); }
JobRepository is being injected directly to it from the method bean defitinion
@Bean public abstract JobRepository jobRepository() throws Exception;
Potential solutions
new
The text was updated successfully, but these errors were encountered:
Resolved with #3942 .
Sorry, something went wrong.
No branches or pull requests
The problem
I can't wrap the
JobRepository
used byJobBuilderFactory
orStepBuilderFactory
, the default one is being used.Same type of a problem as presented here #816 .
related Sleuth code:
https://github.com/spring-cloud/spring-cloud-sleuth/blob/issues_%231904_batch_with_job_repository/spring-cloud-sleuth-autoconfigure/src/main/java/org/springframework/cloud/sleuth/autoconfig/instrument/batch/TraceBatchAutoConfiguration.java#L57-L60
Implementation issues
AbstractBatchConfiguration
createsJobBuilderFactory
andStepBuilderFactory
as fields.JobRepository
is being injected directly to it from the method bean defitinionPotential solutions
JobRepository
not the concrete oneJobBuilderFactory
norStepBuilderFactory
vianew
.The text was updated successfully, but these errors were encountered: