Results 1 to 1 of 1
- 07-23-2009, 09:55 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 1
- Rep Power
- 0
Because Quartz configured execute 3 threads?
Good nigth!
I'm using the Quartz in the application with Spring.
When the quartz execute the task, is being executed the same task 3 times one after another.
I need someone to help me to configure it is done only once this task.
The configuration I'm using is:
I looked in the debug and appeared 3 threads.Java Code:<!-- Level Update Scheduling --> <bean id="schedulingLevelService" class="br.com.smartsw.copasbrazil.site.model.service.impl.SchedulingLevelServiceImpl"> <constructor-arg ref="userPointService" /> </bean> <bean id="jobDetailLevelService" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> <property name="targetObject" ref="schedulingLevelService"/> <property name="targetMethod" value="executeJob"/> </bean> <bean id="cronTriggerLevelService" class="org.springframework.scheduling.quartz.CronTriggerBean"> <property name="jobDetail" ref="jobDetailLevelService" /> <!-- Configured to run the 00:10hs every day --> <!--property name="cronExpression" value="0 10 0 * * ?" /--> <property name="cronExpression" value="0 30 14 * * ?" /> </bean> <!-- Scheduling Triggers --> <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> <property name="triggers"> <list> <ref bean="cronTriggerLevelService" /> </list> </property> <property name="quartzProperties"> <props> <prop key="org.quartz.scheduler.instanceName">Scheduler</prop> <prop key="org.quartz.scheduler.instanceId">AUTO</prop> <!-- Configure ThreadPool --> <prop key="org.quartz.threadPool.class">org.quartz.simpl.SimpleThreadPool</prop> <prop key="org.quartz.threadPool.threadCount">1</prop> <prop key="org.quartz.threadPool.threadPriority">1</prop> <prop key="org.quartz.jobStore.class">org.quartz.simpl.RAMJobStore</prop> </props> </property> </bean>
I tried to use this "THREADCOUNT" in the hope that it runs only once, but did not work.
Now appreciate the help of someone who can.
Excuse my English, Thanks
Similar Threads
-
Where to instansiate Quartz on Struts
By azzaiel in forum Web FrameworksReplies: 0Last Post: 07-01-2009, 03:40 AM -
How to execute external EXE?
By 2bGeek in forum AWT / SwingReplies: 3Last Post: 02-21-2009, 12:59 AM -
Quartz scheduling in EJB3
By Niveditha in forum Enterprise JavaBeans (EJB)Replies: 0Last Post: 06-30-2008, 08:34 AM -
Execute Jar file
By barney in forum New To JavaReplies: 1Last Post: 08-07-2007, 07:13 AM -
why does not execute this?
By aleplgr in forum New To JavaReplies: 6Last Post: 08-01-2007, 11:37 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks