Springmvc+quartz Cluster +sqlserver

Source: Internet
Author: User

Exception information

Failure Obtaining DB Row Lock: line 1th: Only the DECLARE CURSOR is allowed to use the FOR UPDATE clause.

Only the DECLARE CURSOR is allowed to use the FOR UPDATE clause

Modify method
<prop key="org.quartz.jobStore.selectWithLockSQL">SELECT * FROM {0}LOCKS UPDLOCK WHERE LOCK_NAME = ?</prop>
Cluster configuration background

quartz:1.8.4
Spring:3.0.5.release

Configuration

<bean id= "Testquartz" class= "Com.test.quartz.TestQuartz"/>
<bean id= "Timingschedulejobdetail" class= " Frameworkx.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean ">

Gzxh_fxy AUTO !--thread pool configuration--> Org.quartz.simpl.SimpleThreadPool 5 1 !--jobstore configuration--> Org.quartz.impl.jdbcjobstore.JobStoreTX !--cluster configuration--> 15000 1 " How much time!--suspend Line--> select * FROM {0}locks UPDLOCK WHERE lock_name =? Qrtz_ Note: Testquartz need to inherit serializable rewrite Methodinvokingjobdetailfactorybean reference article: Https://www.cnblogs.com/chjun2000/ archive/2012/07/22/2604129.htmlhttp://mushme.iteye.com/blog/1874370 (rewrite Methodinvokingjobdetailfactorybean)

Springmvc+quartz Cluster +sqlserver

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.