I have a bean A which tries to perform an operation, and upon failure schedules a Job on a scheduler B in order to re-perform it later. I use the SchedulerFactoryBean and tried to put the bean A in the schedulerContextMap in order for it to be passed to the job, but spring refuses to do it, saying that there is a circular dependency between A and B.
I wondered if there's any way I can follow in order to solve this problem without recurring to some uglyness such as using a locator pattern in the job through the application context at runtime.
Thanks,
Davide Baroncelli.


Reply With Quote