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

  • Home
  • SEARCH
  • 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 7984657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:20:40+00:00 2026-06-04T11:20:40+00:00

I am using XML Scheduling Plugin ( XMLSchedulingDataProcessorPlugin ) to create several jobs and

  • 0

I am using XML Scheduling Plugin (XMLSchedulingDataProcessorPlugin) to create several jobs and triggers on startup in JDBC job store in quartz-scheduler. This works fine but I have a problem with simple triggers configured to run only once.

When such a trigger fires, it is removed from the database as there is no next fire time. So far so good. Unfortunately when I restart the application the plugin can’t find that trigger so it is reinserted again. Because I use MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY this job is fired again and again removed from the database. Restarting the application repeats the whole process.

Obviously I want my trigger to fire only once. Is it possible to keep fired triggers in the database even if they don’t have next fire time? Or maybe this can be solved in a different way? Excerpt from my quartz_data.xml file:

<processing-directives>
    <overwrite-existing-data>false</overwrite-existing-data>
    <ignore-duplicates>true</ignore-duplicates>
</processing-directives>

<schedule>

    <trigger>
        <simple>
            <!-- ... -->
            <start-time>2012-05-10T07:00:00Z</start-time>
            <repeat-count>0</repeat-count>
            <repeat-interval>0</repeat-interval>
        </simple>
    </trigger>

Note that there is a problem with all triggers that reached the last execution and hence were deleted from db.

  • 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-04T11:20:42+00:00Added an answer on June 4, 2026 at 11:20 am

    I ended up extending StdJDBCDelegate and overriding deleteTrigger() to be no-op:

    package com.example;
    
    class DurableTriggersDriverDelegate extends StdJDBCDelegate {
    
        public DurableTriggersDriverDelegate(Logger logger, String tablePrefix, String schedName, String instanceId, ClassLoadHelper classLoadHelper) {
            super(logger, tablePrefix, schedName, instanceId, classLoadHelper);
        }
    
        public DurableTriggersDriverDelegate(Logger logger, String tablePrefix, String schedName, String instanceId, ClassLoadHelper classLoadHelper, Boolean useProperties) {
            super(logger, tablePrefix, schedName, instanceId, classLoadHelper, useProperties);
        }
    
        @Override
        public int deleteTrigger(Connection conn, TriggerKey triggerKey) throws SQLException {
            this.logger.debug("deleteTrigger(" + conn + ") skipped");
            return 1;
        }
    }
    

    The new implementation can be easily plugged-in via quartz.properties:

    org.quartz.jobStore.driverDelegateClass=com.example.DurableTriggersDriverDelegate
    

    This solution has several drawbacks:

    • the database keeps growing and growing, not deleting fired triggers

    • deleting job is not possible since it first tries to delete all triggers (but this is not performed) and constraint violation occurs when trying to delete the job details itself

    However it solved my original problem.

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

Sidebar

Related Questions

In a spring servlet xml file, I'm using org.springframework.scheduling.quartz.SchedulerFactoryBean to regularly fire a set
I'm using Quartz 2.1.3. My quartz.properties : #=================================================== # Configure the Job Initialization Plugin
I'm using XML Writer to create a log of some important events in my
I have a collection of nodes xml.dom.Node objects created using xml.dom.minidom. I store them
I am reading HTML files from a folder using xml parser that store the
I am trying to create hyperlinks using XML information and XSLT templates. Here is
I am using XML Parser to parse a xml file and store as Global
Using Xml Deserilization I am getting value back from xml file and store the
Ok guys I'm using xml to store page information for a dynamic website. I
I've been using XML to create my UI and I know this question may

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.