Question

So, I have a Quartz job, and an ApplicationListener that gets fired when the Quartz job is done. My problem is that any finalization that I do in the listener will create a race condition for the code that polls to check if the Quartz job is done. Basically I want either make the Quartz job wait for the ApplicationListener to start and finish before considering itself done.

Is this even possible? Am I mixing frameworks?

Was it helpful?

Solution

Turns out my issue was lack of familiarity with the code base. Everything was wired correctly, but I used the wrong JobKey to search for listeners before allowing the main job to shut down. Sorry to waste your time guys.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top