<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Easy Way to Configure Quartz Scheduler with Spring Boot &#8211; Example With Source Code	</title>
	<atom:link href="https://www.opencodez.com/java/quartz-scheduler-with-spring-boot.htm/feed" rel="self" type="application/rss+xml" />
	<link>https://www.opencodez.com/java/quartz-scheduler-with-spring-boot.htm</link>
	<description>develope &#124; share &#124; reuse</description>
	<lastBuildDate>Mon, 08 Mar 2021 05:54:48 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<!--Theme by MyThemeShop.com-->
	<item>
		<title>
		By: Ankkt Tyagi		</title>
		<link>https://www.opencodez.com/java/quartz-scheduler-with-spring-boot.htm/comment-page-1#comment-101007</link>

		<dc:creator><![CDATA[Ankkt Tyagi]]></dc:creator>
		<pubDate>Mon, 08 Mar 2021 05:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.opencodez.com/?p=1926#comment-101007</guid>

					<description><![CDATA[Hi Pavan,

I want to force stop a quartz running job but I can&#039;t. I used the scheduler&#039;s interrupt method but it&#039;s not working. 

Please suggest to me the correct way.]]></description>
			<content:encoded><![CDATA[<p>Hi Pavan,</p>
<p>I want to force stop a quartz running job but I can&#8217;t. I used the scheduler&#8217;s interrupt method but it&#8217;s not working. </p>
<p>Please suggest to me the correct way.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ankikt Tyagi		</title>
		<link>https://www.opencodez.com/java/quartz-scheduler-with-spring-boot.htm/comment-page-1#comment-100948</link>

		<dc:creator><![CDATA[Ankikt Tyagi]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 11:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.opencodez.com/?p=1926#comment-100948</guid>

					<description><![CDATA[Hi Pawan,

I have implemented Quartz in a spring boot app. I&#039;m not able to interrupt a running trigger. Below is the code for interrupt the running jobs. 

List currentlyExecuting = scheduler.getCurrentlyExecutingJobs();
          for (JobExecutionContext jobExecutionContext : currentlyExecuting) {
              if(jobExecutionContext.getJobDetail().getKey().getName().equals(&quot;JobName&quot;)){
                  scheduler.interrupt(jobExecutionContext.getJobDetail().getKey());
                  System.out.println(&quot;stoppeed&quot;);
              }

**************
Here is the code for executing my business logic. 

public class SimpleJob extends QuartzJobBean implements InterruptableJob
{

    @SuppressWarnings(&quot;unused&quot;)
    private volatile boolean toStopFlag = true;

    @Autowired

    SchedulerFactoryBean schedulerFactoryBean;
    @Autowired
    SendAndReciveDataOverInOutCon sendAndReciveDataOverInOutCon;

    @Override
    public void executeInternal(JobExecutionContext jobExecutionContext)
            throws JobExecutionException

    {

        Scheduler scheduler = schedulerFactoryBean.getScheduler();
       
        sendAndReciveDataOverInOutCon.fetchAndSendDataOverInOutConnections(jobExecutionContext,
                scheduler, true);
    }

    @Override
    public void interrupt() throws UnableToInterruptJobException
    {

        System.out.println(&quot;Stopping thread... &quot;);
        toStopFlag = false;
    }
}

Please help me to interrupt the running triggers.]]></description>
			<content:encoded><![CDATA[<p>Hi Pawan,</p>
<p>I have implemented Quartz in a spring boot app. I&#8217;m not able to interrupt a running trigger. Below is the code for interrupt the running jobs. </p>
<p>List currentlyExecuting = scheduler.getCurrentlyExecutingJobs();<br />
          for (JobExecutionContext jobExecutionContext : currentlyExecuting) {<br />
              if(jobExecutionContext.getJobDetail().getKey().getName().equals(&#8220;JobName&#8221;)){<br />
                  scheduler.interrupt(jobExecutionContext.getJobDetail().getKey());<br />
                  System.out.println(&#8220;stoppeed&#8221;);<br />
              }</p>
<p>**************<br />
Here is the code for executing my business logic. </p>
<p>public class SimpleJob extends QuartzJobBean implements InterruptableJob<br />
{</p>
<p>    @SuppressWarnings(&#8220;unused&#8221;)<br />
    private volatile boolean toStopFlag = true;</p>
<p>    @Autowired</p>
<p>    SchedulerFactoryBean schedulerFactoryBean;<br />
    @Autowired<br />
    SendAndReciveDataOverInOutCon sendAndReciveDataOverInOutCon;</p>
<p>    @Override<br />
    public void executeInternal(JobExecutionContext jobExecutionContext)<br />
            throws JobExecutionException</p>
<p>    {</p>
<p>        Scheduler scheduler = schedulerFactoryBean.getScheduler();</p>
<p>        sendAndReciveDataOverInOutCon.fetchAndSendDataOverInOutConnections(jobExecutionContext,<br />
                scheduler, true);<br />
    }</p>
<p>    @Override<br />
    public void interrupt() throws UnableToInterruptJobException<br />
    {</p>
<p>        System.out.println(&#8220;Stopping thread&#8230; &#8220;);<br />
        toStopFlag = false;<br />
    }<br />
}</p>
<p>Please help me to interrupt the running triggers.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ramesh Komalli		</title>
		<link>https://www.opencodez.com/java/quartz-scheduler-with-spring-boot.htm/comment-page-1#comment-96911</link>

		<dc:creator><![CDATA[Ramesh Komalli]]></dc:creator>
		<pubDate>Sat, 13 Jun 2020 05:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.opencodez.com/?p=1926#comment-96911</guid>

					<description><![CDATA[factory.setDataSource(dataSource);
What is this DataRouce?

 factory.setJobFactory(jobFactory);
 factory.setQuartzProperties(quartzProperties());

And what is the DataSource from Quartz.properties?

Should be both one and same?]]></description>
			<content:encoded><![CDATA[<p>factory.setDataSource(dataSource);<br />
What is this DataRouce?</p>
<p> factory.setJobFactory(jobFactory);<br />
 factory.setQuartzProperties(quartzProperties());</p>
<p>And what is the DataSource from Quartz.properties?</p>
<p>Should be both one and same?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dheeraj		</title>
		<link>https://www.opencodez.com/java/quartz-scheduler-with-spring-boot.htm/comment-page-1#comment-96382</link>

		<dc:creator><![CDATA[Dheeraj]]></dc:creator>
		<pubDate>Fri, 24 Apr 2020 11:14:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.opencodez.com/?p=1926#comment-96382</guid>

					<description><![CDATA[The problem is with the database configurations, like org.quartz.dataSource.quartzDS.driver, URL, user, password which you have defined. Please check that these configs are correct and as suggested by Pavan, check if you are able to make a DB call to the Database you have created for Quartz.]]></description>
			<content:encoded><![CDATA[<p>The problem is with the database configurations, like org.quartz.dataSource.quartzDS.driver, URL, user, password which you have defined. Please check that these configs are correct and as suggested by Pavan, check if you are able to make a DB call to the Database you have created for Quartz.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Apoorv Saxena		</title>
		<link>https://www.opencodez.com/java/quartz-scheduler-with-spring-boot.htm/comment-page-1#comment-95194</link>

		<dc:creator><![CDATA[Apoorv Saxena]]></dc:creator>
		<pubDate>Sun, 09 Feb 2020 17:28:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.opencodez.com/?p=1926#comment-95194</guid>

					<description><![CDATA[Can anyone please help me in this.:-

&quot;Write a scheduled method in a spring boot app that runs automatically after every 10 seconds&quot;.

Thank You]]></description>
			<content:encoded><![CDATA[<p>Can anyone please help me in this.:-</p>
<p>&#8220;Write a scheduled method in a spring boot app that runs automatically after every 10 seconds&#8221;.</p>
<p>Thank You</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 121/122 objects using disk
Page Caching using disk: enhanced 
Database Caching 5/14 queries in 0.005 seconds using disk

Served from: www.opencodez.com @ 2026-04-19 03:21:22 by W3 Total Cache
-->