Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9230017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:43:02+00:00 2026-06-18T05:43:02+00:00

I have a quartz scheduler with spring application. Each time quartz triggers a job,

  • 0

I have a quartz scheduler with spring application.

Each time quartz triggers a job, the job creates a list (say list of dogs). The next time quartz triggers another job, I need access to access the list created by the previous job. How can I achieve this.

I cannot use a single instance of the object. As this object can be used by other processes which create its own lists (say list of cows, list of birds etc)

The effect i am looking for is similar to an instance variable and executing something in a loop, and each time in the loop you update the instance variable, the new value of the instance variable is accessible to the next iteration of the loop.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:43:04+00:00Added an answer on June 18, 2026 at 5:43 am

    You need some global storage accessible by all jobs. In Spring you can inject beans into jobs and keep that list in one of the beans. You can also take advantage of JobDataMap. However it might serialize your collection and deserialize it back.

    The problem is actually more complex. Remember that Quartz can be run on multiple nodes. In that case you are left with JobDataMap stored as BLOB in the database or using database yourself (say, one row per dog).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using quartz scheduler to schedule my job. I have used CronTrigger. But
I am using quartz scheduler in my spring project. I have to run a
I have implemented quartz scheduler in my application. And its working upto a certain
Java spring scheduler quartz I have old code with express schedule=*/10 * * *
Java - spring - quartz application I have Java application with spring 3.x which
I'm trying to implement scheduler to my application. I use spring and quartz support.
I have a quartz scheduler job which scans a directory every 10 seconds and
Scenario: We have a scheduler which is using JDBC Job Store. Quartz version is
Do java Quartz Scheduler support Asynchronous job scheduling.If so,is it by default or have
I have a Console Application that instantiates a Quartz Scheduler. I would like a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.