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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:46:11+00:00 2026-05-30T18:46:11+00:00

I am currently running Quartz under spring using the configuration below. The reason for

  • 0

I am currently running Quartz under spring using the configuration below. The reason for using a database as a backend for the scheduler is to enable clustered mode.

This all works fine, but if I want to remove the InitialAbstractPublicationJob I have problems. Let’s say I delete all of the config below, except for the scheduler itself. A row still exists in the DB table QRTZ_TRIGGERS.

  TRIGGER_NAME: initialAbstractTrigger
 TRIGGER_GROUP: DEFAULT
      JOB_NAME: initialAbstractDataAccessDelegator
     JOB_GROUP: DEFAULT
   IS_VOLATILE: 0
   DESCRIPTION: NULL
NEXT_FIRE_TIME: 1330953433511
PREV_FIRE_TIME: 1330953432511
 TRIGGER_STATE: WAITING
  TRIGGER_TYPE: SIMPLE
    START_TIME: 1330953336511
      END_TIME: 0
 CALENDAR_NAME: NULL
 MISFIRE_INSTR: 0
      JOB_DATA: NULL
1 row in set (0.00 sec)

This row causes quartz to try and load the AbstractPublicationJobBean which no longer exists in spring, and exceptions abound. So my question is: is it possible to configure the scheduler to flush triggers from the DB at shutdown or startup of spring, and recreate the triggers from the spring applicationContext.xml

<bean id="initialAbstractPublicationJob" class="bbc.forge.ibroadcast.snowball.InitialAbstractPublicationJob" />
<bean id="initialAbstractDataAccessDelegator" class="org.springframework.scheduling.quartz.JobDetailBean">
    <property name="jobClass" value="bbc.forge.ibroadcast.snowball.DelegatingJobBean"/>
    <property name="durability" value="false" />
    <property name="jobDataAsMap">
        <map>
            <entry key="job.bean.name" value="initialAbstractPublicationJob" >
            </entry>
            <entry key="sdtl.file.prefix" value="sdtl_" >
            </entry>
        </map>
    </property>
</bean>
<bean id="initialAbstractTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
     see the example of method invoking job above 
    <property name="jobDetail" ref="initialAbstractDataAccessDelegator" />
     10 seconds 
    <property name="startDelay" value="0" />
     repeat every n milliseconds 
    <property name="repeatInterval" value="1000" />
</bean>
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
    <property name="triggers">
        <list>
            <ref bean="initialAbstractTrigger" />
        </list>
    </property>
    <property name="dataSource">
        <ref bean="dataSource" />
    </property>
    <property name="applicationContextSchedulerContextKey">
        <value>applicationContext</value>
    </property>
    <property name="quartzProperties">
        <props>
            <prop key="org.quartz.jobStore.isClustered">true</prop>
            <prop key="org.quartz.scheduler.instanceId">AUTO</prop>


        </props>
    </property>

</bean>
  • 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-05-30T18:46:12+00:00Added an answer on May 30, 2026 at 6:46 pm

    duplicate question: delete-trigger-in-quartz

    if you want to update trigger when spring shutdown, just do these things in a @PreDestroy method.

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

Sidebar

Related Questions

I'm currently using Quartz Scheduler as a replacement for Cron on our Windows 2003
I am currently running the below code to parse an HTML link using HTML
We're currently running a server on Compatibility mode 8 and I want to update
I'm currently running into some issues resizing images using GD. Everything works fine until
I currently running into trouble with spring security, I have been following the two
My enterprise application is currently Running on Weblogic 10.3.4, Java 1.6 and Spring 2.0.8.
My currently running activity B should be destroyed using 'finishActivity(999)'. Doing so, I want
Currently Running Tomcat: v6 Spring Tools Suite: v2.7.2 Spring Framework: spring-webmvc-3.0.5 Servlet XML <?xml
I am currently running into an architectural problem in my Python app (using Twisted)
Currently running Server 2003 but am looking at reinstalling in the near future due

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.