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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:34:13+00:00 2026-06-10T08:34:13+00:00

I have developed a web crawler which crawls with Start URL as seed parameter.

  • 0

I have developed a web crawler which crawls with Start URL as seed parameter. I want to allow users to schedule this task in terms of a Job if possible.

Currently I am using Spring 3.1.2 and Hibernate. I need to give users a front end which receives cronJob Parameters and based on that I want to run the crawler. Is it possible to do it using spring.

I read a bit about Quartz but the articles on SO or other websites are not at all clear or they are not complete in order to fully understand how to implement a scheduler in spring.

I know basics that there are three components to it

  1. SchedulerFacotry
  2. Trigger
  3. Job (Service to Run)

I hope someone could guide me in correct direction.

  • 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-10T08:34:15+00:00Added an answer on June 10, 2026 at 8:34 am

    Quartz scheduler is just the right tool for the job. For some reason almost all tutorials focus on defining jobs at startup, in XML – while Quartz is fully capable of (re-|un-) scheduling jobs at runtime.

    You can and should takr advantage of Spring to start the Quartz Scheduler, but then you can interact with it directly from your code. Here is a simple example from the documentation:

    JobDetail job = newJob(SimpleJob.class)
        .withIdentity("job1", "group1")
        .build();
    
    CronTrigger trigger = newTrigger()
        .withIdentity("trigger1", "group1")
        .withSchedule(cronSchedule("0/20 * * * * ?"))
        .build();
    
    scheduler.scheduleJob(job, trigger);
    

    Here you define a job (piece of Java code to run), trigger (when to run it, user can supply any valid CRON expression) and wrap it all by scheduling it. The scheduler instance can be injected by Spring. Spring will also handle proper shutdown.

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

Sidebar

Related Questions

I have developed a Web Crawler and now i want to respect the robots.txt
I have developed a web project. Which is generating log file using log4j. But
I have developed a Web service using WCF Service Application. This service application is
I have developed a web application with fields Keyword,Latitude and Longitude. I want to
We have developed a web application which consumes a web service. The user will
I have developed a Web application (HTML5/browser based) for a client which requires fairly
I have developed an web application using Asp.net ( .Net Framework 3.0). In this
I have developed a web application in Visual Studio 2008 and want to publish
I have developed many web applications in ASP.NET in which I have make use
I have developed a web dashboard which has a structure of controls embedded inside

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.