[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
New worker running the quartz job each time  XML
Forum Index -> Quartz
Author Message
arjun9

neo

Joined: 08/05/2014 11:21:29
Messages: 1
Offline

Hi All,

We have an app which runs a quartz job every day at 10 PM and it seems to work fine but I noticed something in the logs. It says new worker every day. Example is below -

Code:
08/04/2014 22:02:29,669  INFO [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-2]
 08/05/2014 22:03:19,319  INFO [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3]


I am concerned if this is expected or this might cause any issue. We haven't specified anything related to setting the thread count in the xml file.

Below is the xml file we use -

Code:
<?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:context="http://www.springframework.org/schema/context"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
   xmlns:util="http://www.springframework.org/schema/util"
   xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
 
   <bean id="timerJob"
     class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
     <property name="targetObject" ref="timerClass" />
     <property name="targetMethod" value="timerMethod" />
   </bean>
 
   <!-- Cron Trigger, runs every day at 10 AM -->
   <bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
     <property name="jobDetail" ref="timerJob" />
     <property name="cronExpression" value="${timer.chronExpression}" />
   </bean>
 
   <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
     <property name="jobDetails">
       <list>
         <ref bean="timerJob" />
       </list>
     </property>
     <property name="triggers">
       <list>
         <ref bean="cronTrigger" />
       </list>
     </property>
     <property name="quartzProperties">
       <util:properties>
         <prop key="org.quartz.scheduler.jmx.export">true</prop>
         <prop key="org.quartz.scheduler.jmx.objectName">
           quartz:type=QuartzScheduler,name=Quartz
         </prop>
       </util:properties>
     </property>
   </bean>
 </beans>


Please advise.

Thanks
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team