NutzCN Logo
问答 quartz 任务执行多次
发布于 2598天前 作者 qq_d6d46f6d 1879 次浏览 复制 上一个帖子 下一个帖子
标签:

如题,quartz任务,会执行多次。请问是什么原因?

13 回复

具体多少次

部分日志 select是telefenJob的执行部分的sql

2017-10-11 20:15:00,115 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=mAccountService
2017-10-11 20:15:00,115 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(expressWithoutCostController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,115 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(mAccountService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,115 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(onSalesRelProductSubCateService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,115 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'mAccountService'<class com.timemans.services.user.MAccountService>
2017-10-11 20:15:00,116 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.services.user.MAccountService without AOP
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(wxUserService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'mAccountService' to [app] 
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(smsCodeService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(payService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(expressTemplateController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(wxBasicConfigService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(productCheckService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.service.EntityService.<init>(EntityService.java:41) DEBUG - Get TypeParams for self : com.timemans.domains.user.MAccount
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(orderJob) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(supplierService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'busiLogService'<class com.timemans.services.log.BusiLogService>
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(logController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=busiLogService
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(roleController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(busiLogService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(productCompanyAuthorityService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'busiLogService'<class com.timemans.services.log.BusiLogService>
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(mCompanyController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.services.log.BusiLogService without AOP
2017-10-11 20:15:00,116 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'busiLogService' to [app] 
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(sOrderProductService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(userService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,116 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,117 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(productImageService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,117 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,117 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(tokenJob) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,117 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(userController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,117 org.nutz.service.EntityService.<init>(EntityService.java:41) DEBUG - Get TypeParams for self : com.timemans.domains.log.BusiLog
2017-10-11 20:15:00,117 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(cardCouponJob) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,117 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(jdOrderSubmmitJob) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,117 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'basicDataService'<class com.timemans.services.BasicDataService>
2017-10-11 20:15:00,117 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(mergeService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,117 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=basicDataService
2017-10-11 20:15:00,117 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(cardPackageController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,117 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(basicDataService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,117 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(telefenJob) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,117 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'basicDataService'<class com.timemans.services.BasicDataService>
2017-10-11 20:15:00,117 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(productStockController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,117 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(basicHtmlService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,117 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.services.BasicDataService without AOP
2017-10-11 20:15:00,117 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'basicDataService' to [app] 
2017-10-11 20:15:00,117 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,117 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,117 org.nutz.service.EntityService.<init>(EntityService.java:41) DEBUG - Get TypeParams for self : com.timemans.common.base.BasicData
2017-10-11 20:15:00,117 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(confController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,117 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'createReData'<class com.timemans.plus.telecom.telefen.common.CreateReData>
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(unitService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(mergeController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(mUserController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=createReData
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(areaService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(createReData) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(mOrderCommentService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'createReData'<class com.timemans.plus.telecom.telefen.common.CreateReData>
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(productReportController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(jdOrderController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.plus.telecom.telefen.common.CreateReData without AOP
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(wxConfigService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'createReData' to [app] 
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(productDetailService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(productPriceController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(expressWithoutCostService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(homeController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'busiLogService'<class com.timemans.services.log.BusiLogService>
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(cardTokenService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'busiLogService'<class com.timemans.services.log.BusiLogService>
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(productCompanyAuthorityController) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(mUserCompanyService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,118 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(cardCouponService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,119 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(mCollectService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,119 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(mAccountService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,119 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'mAccountService'<class com.timemans.services.user.MAccountService>
2017-10-11 20:15:00,119 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=mAccountService
2017-10-11 20:15:00,119 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(mAccountService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,119 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'mAccountService'<class com.timemans.services.user.MAccountService>
2017-10-11 20:15:00,119 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.services.user.MAccountService without AOP
2017-10-11 20:15:00,119 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'mAccountService' to [app] 
2017-10-11 20:15:00,119 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,119 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,119 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,119 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,119 org.nutz.service.EntityService.<init>(EntityService.java:41) DEBUG - Get TypeParams for self : com.timemans.domains.log.BusiLog
2017-10-11 20:15:00,119 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'basicDataService'<class com.timemans.services.BasicDataService>
2017-10-11 20:15:00,119 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=basicDataService
2017-10-11 20:15:00,119 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(basicDataService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,120 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'basicDataService'<class com.timemans.services.BasicDataService>
2017-10-11 20:15:00,120 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.services.BasicDataService without AOP
2017-10-11 20:15:00,120 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'basicDataService' to [app] 
2017-10-11 20:15:00,120 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,120 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,120 org.nutz.service.EntityService.<init>(EntityService.java:41) DEBUG - Get TypeParams for self : com.timemans.common.base.BasicData
2017-10-11 20:15:00,119 org.nutz.service.EntityService.<init>(EntityService.java:41) DEBUG - Get TypeParams for self : com.timemans.domains.user.MAccount
2017-10-11 20:15:00,120 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'createReData'<class com.timemans.plus.telecom.telefen.common.CreateReData>
2017-10-11 20:15:00,120 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=createReData
2017-10-11 20:15:00,120 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(createReData) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,120 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'createReData'<class com.timemans.plus.telecom.telefen.common.CreateReData>
2017-10-11 20:15:00,120 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.plus.telecom.telefen.common.CreateReData without AOP
2017-10-11 20:15:00,120 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'busiLogService'<class com.timemans.services.log.BusiLogService>
2017-10-11 20:15:00,120 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'createReData' to [app] 
2017-10-11 20:15:00,121 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=busiLogService
2017-10-11 20:15:00,121 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:15:00,121 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(busiLogService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,122 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'busiLogService'<class com.timemans.services.log.BusiLogService>
2017-10-11 20:15:00,122 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'busiLogService'<class com.timemans.services.log.BusiLogService>
2017-10-11 20:15:00,123 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:15:00,131 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:15:00,122 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'busiLogService'<class com.timemans.services.log.BusiLogService>
2017-10-11 20:15:00,134 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.services.log.BusiLogService without AOP
2017-10-11 20:15:00,134 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'busiLogService' to [app] 
2017-10-11 20:15:00,134 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,134 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,134 org.nutz.service.EntityService.<init>(EntityService.java:41) DEBUG - Get TypeParams for self : com.timemans.domains.log.BusiLog
2017-10-11 20:15:00,134 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'basicDataService'<class com.timemans.services.BasicDataService>
2017-10-11 20:15:00,134 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=basicDataService
2017-10-11 20:15:00,135 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(basicDataService) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,135 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'basicDataService'<class com.timemans.services.BasicDataService>
2017-10-11 20:15:00,135 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.services.BasicDataService without AOP
2017-10-11 20:15:00,135 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'basicDataService' to [app] 
2017-10-11 20:15:00,135 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,135 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
2017-10-11 20:15:00,135 org.nutz.service.EntityService.<init>(EntityService.java:41) DEBUG - Get TypeParams for self : com.timemans.common.base.BasicData
2017-10-11 20:15:00,135 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'createReData'<class com.timemans.plus.telecom.telefen.common.CreateReData>
2017-10-11 20:15:00,135 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=createReData
2017-10-11 20:15:00,135 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(createReData) in AnnotationIocLoader(packages=[com.timemans])
2017-10-11 20:15:00,135 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'createReData'<class com.timemans.plus.telecom.telefen.common.CreateReData>
2017-10-11 20:15:00,135 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.plus.telecom.telefen.common.CreateReData without AOP
2017-10-11 20:15:00,135 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'createReData' to [app] 
2017-10-11 20:15:00,136 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'busiLogService'<class com.timemans.services.log.BusiLogService>
2017-10-11 20:15:00,136 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'busiLogService'<class com.timemans.services.log.BusiLogService>
2017-10-11 20:15:00,143 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:15:00,156 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) DEBUG - SELECT * FROM telfen_order WHERE  order_status=0 or pay_status=0
2017-10-11 20:15:00,159 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) DEBUG - SELECT * FROM telfen_order WHERE  order_status=0 or pay_status=0
2017-10-11 20:15:00,160 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) DEBUG - SELECT * FROM telfen_order WHERE  order_status=0 or pay_status=0
2017-10-11 20:15:00,161 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) DEBUG - SELECT * FROM telfen_order WHERE  order_status=0 or pay_status=0

启动日志里面, 带TelefenJob的日志贴一下

2017-10-11 20:10:35,052 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class com.timemans.job.TelefenJob
2017-10-11 20:10:36,643 org.nutz.integration.quartz.NutQuartzCronJobFactory.init(NutQuartzCronJobFactory.java:35) DEBUG - job define name=com.timemans.job.TelefenJob cron=0 0/5 * * * ?
2017-10-11 20:10:41,499 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class com.timemans.job.TelefenJob
2017-10-11 20:10:42,977 org.nutz.integration.quartz.NutQuartzCronJobFactory.init(NutQuartzCronJobFactory.java:35) DEBUG - job define name=com.timemans.job.TelefenJob cron=0 0/5 * * * ?
2017-10-11 20:10:54,059 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class com.timemans.job.TelefenJob
2017-10-11 20:10:55,449 org.nutz.integration.quartz.NutQuartzCronJobFactory.init(NutQuartzCronJobFactory.java:35) DEBUG - job define name=com.timemans.job.TelefenJob cron=0 0/5 * * * ?
2017-10-11 20:11:11,031 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class com.timemans.job.TelefenJob
2017-10-11 20:11:12,386 org.nutz.integration.quartz.NutQuartzCronJobFactory.init(NutQuartzCronJobFactory.java:35) DEBUG - job define name=com.timemans.job.TelefenJob cron=0 0/5 * * * ?
2017-10-11 20:15:00,010 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:15:00,011 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:15:00,011 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.job.TelefenJob without AOP
2017-10-11 20:15:00,009 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:15:00,012 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:15:00,012 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:15:00,010 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:15:00,014 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.job.TelefenJob without AOP
2017-10-11 20:15:00,014 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:15:00,014 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.job.TelefenJob without AOP
2017-10-11 20:15:00,018 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:15:00,018 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.timemans.job.TelefenJob without AOP
2017-10-11 20:15:00,121 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:15:00,123 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:15:00,131 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:15:00,143 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:20:00,000 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:20:00,000 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:20:00,001 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:20:00,002 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:20:00,003 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:20:00,004 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:20:00,004 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:20:00,004 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:25:00,000 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:25:00,000 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:25:00,001 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:25:00,001 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:25:00,001 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:25:00,002 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:25:00,003 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:25:00,004 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:30:00,000 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:30:00,001 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:30:00,001 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:30:00,001 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:30:00,002 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:30:00,002 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:30:00,002 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:30:00,002 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:35:00,000 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:35:00,000 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:35:00,001 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:35:00,001 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:35:00,001 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'telefenJob'<class com.timemans.job.TelefenJob>
2017-10-11 20:35:00,001 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:35:00,002 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob
2017-10-11 20:35:00,004 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.com.timemans.job.TelefenJob

启动日志, 不是启动之后的日志

哦, 看到了

2017-10-11 20:10:36,643 org.nutz.integration.quartz.NutQuartzCronJobFactory.init(NutQuartzCronJobFactory.java:35) DEBUG - job define name=com.timemans.job.TelefenJob cron=0 0/5 * * * ?
2017-10-11 20:10:42,977 org.nutz.integration.quartz.NutQuartzCronJobFactory.init(NutQuartzCronJobFactory.java:35) DEBUG - job define name=com.timemans.job.TelefenJob cron=0 0/5 * * * ?
2017-10-11 20:10:55,449 org.nutz.integration.quartz.NutQuartzCronJobFactory.init(NutQuartzCronJobFactory.java:35) DEBUG - job define name=com.timemans.job.TelefenJob cron=0 0/5 * * * ?

NutQuartzCronJobFactory.java:35 是通过遍历conf里的key来获取任务的, name不会重复

是不是你新建了2个Ioc容器了??

本地代码、执行了一次

@IocBean
public class TelefenJob implements Job {

    @Inject
    TelfenOrderService telfenOrderService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

//        telfenOrderService.submitOrder();
        System.out.println("123");

    }
}

tomcat多个host会影响加载多次吗?

server.xml里面配了多个server就会启动多次啊

@wendal 可是这个job在不同的Host里,为啥会启动这么多次呢?有什么解决方案吗?因为在一个tomcat下配置了多个工程,谢谢大神

刚才做了个实验,汗。server.xml同一个Engine下如果出现多个host,会多次加载。如果含有job的工程,又被某一个host下的context的docbase指定了,则又会加载一次job。以前不知道,惊了。

添加回复
请先登陆
回到顶部