Hi,
Thanks for this project. I have update this project to a multi threading app.
Class added :
@EnableScheduling
@component
public class Scheduler {
@async("asyncExecutor")
@scheduled(fixedRateString = "${schedule.config.rule.violation.in.millis}")
void runScheduler() {
// SAVE //update //Delete with dummy values.
}
}
Now if thread is doing some DB manipulation and at the same time if API is called. Sometime it throw exception
"Cannot execute the request because an asynchronous operation is in progress. Please use a different connection" .
Hi,
Thanks for this project. I have update this project to a multi threading app.
Class added :
@EnableScheduling
@component
public class Scheduler {
@async("asyncExecutor")
@scheduled(fixedRateString = "${schedule.config.rule.violation.in.millis}")
void runScheduler() {
// SAVE //update //Delete with dummy values.
}
}
Now if thread is doing some DB manipulation and at the same time if API is called. Sometime it throw exception
"Cannot execute the request because an asynchronous operation is in progress. Please use a different connection" .