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 37485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:33:29+00:00 2026-05-10T14:33:29+00:00

In podcast #15, Jeff mentioned he twittered about how to run a regular event

  • 0

In podcast #15, Jeff mentioned he twittered about how to run a regular event in the background as if it was a normal function – unfortunately I can’t seem to find that through twitter. Now I need to do a similar thing and are going to throw the question to the masses.

My current plan is when the first user (probably me) enters the site it starts a background thread that waits until the alloted time (hourly on the hour) and then kicks off the event blocking the others (I am a Windows programmer by trade so I think in terms of events and WaitOnMultipleObjects) until it completes.

How did Jeff do it in Asp.Net and is his method applicable to the Java web-app world?

  • 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. 2026-05-10T14:33:30+00:00Added an answer on May 10, 2026 at 2:33 pm

    I think developing a custom solution for running background tasks doesn’t always worth, so I recommend to use the Quartz Scheduler in Java.

    In your situation (need to run background tasks in a web application) you could use the ServletContextListener included in the distribution to initialize the engine at the startup of your web container.

    After that you have a number of possibilities to start (trigger) your background tasks (jobs), e.g. you can use Calendars or cron-like expressions. In your situation most probably you should settle with SimpleTrigger that lets you run jobs in fixed, regular intervals.

    The jobs themselves can be described easily too in Quartz, however you haven’t provided any details about what you need to run, so I can’t provide a suggestion in that area.

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

Sidebar

Related Questions

In Podcast 58 (about 20 minutes in), Jeff complains about the problems of HTML.Encode()
I just heard Joel & Jeff talk about Sender ID in their podcast number
Ted Faison in a podcast on event-based software design mentioned that sender and self
On the Stackoverflow podcast this week, Jeff mentioned that in 2004 he wrote a
About 10 stackoverflow.com podcasts back Jeff mentioned that instead of wiring up his routes
In the SO podcast episode 54 Jeff talked about using Visual Studio to save
I'm listening to podcast #19 and Joel and Jeff are arguing about running SQL
I have a ListView where each item represents a podcast that can run up
In the StackOverflow Podcast #54 , Jeff mentions they register their URL routes in
In a recent Stackoverflow podcast (#59) , Jeff Atwood mentions that Stackoverflow has some

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.