[英]Upgrade to Quartz 1.6 on JBoss 4.2.x
Is there a recommended way to upgrade Quartz in JBoss 4.2.x? 是否有推荐的方法在JBoss 4.2.x中升级Quartz?
JBoss bundles quartz 1.5.2, but I have encountered issues ( QUARTZ-399 , QUARTZ-520 ) that I want to avoid. JBoss捆绑了石英1.5.2,但是遇到了我想避免的问题( QUARTZ-399 , QUARTZ-520 )。
I would not want to patch quartz.jar in JBoss just to resolve the errors, but instead provide a new quartz.jar (plus associated configuration artifacts). 我不想在JBoss中修补quartz.jar只是为了解决错误,而是提供一个新的quartz.jar(以及相关的配置工件)。 The Quartz 1.6 migration notes only contain information specific to Quartz, and I could not find any additional information during my search.
Quartz 1.6迁移说明仅包含特定于Quartz的信息,我在搜索过程中找不到任何其他信息。
It does not seem to work to just put the new quartz.jar into the EAR file, because the old version is loaded at the server level (in the server's lib directory). 仅将新的quartz.jar放入EAR文件似乎不起作用,因为旧版本是在服务器级别(在服务器的lib目录中)加载的。
I am quite sure somebody has already tried that, and hope that this person could share or provide some links. 我很确定有人已经尝试过了,希望这个人可以分享或提供一些链接。
You could include Quartz 1.6 in your WAR or EAR, and your application will use that instead. 您可以在WAR或EAR中包含Quartz 1.6,并且您的应用程序将改为使用Quartz 1.6。 However, only the application components within that WAR or EAR will use the new JAR, which may be a problem or an advantage, depending on how you've set up your deployments.
但是,只有该WAR或EAR中的应用程序组件才会使用新的JAR,这可能是问题还是优势,这取决于您如何设置部署。
After trying around following skaffman's comments, I have found a very simple solution that does not involve changing JBoss' class loading behavior. 在尝试遵循skaffman的评论之后,我发现了一个非常简单的解决方案,该解决方案不涉及更改JBoss的类加载行为。 Simply replacing the quartz.jar in
${jboss.server.dir}/lib
with quartz 1.6 does the job, and I haven't had any problems yet. 只需用石英1.6替换
${jboss.server.dir}/lib
jboss.server.dir ${jboss.server.dir}/lib
的quartz.jar即可完成工作,而且我还没有遇到任何问题。
Restarting shows the following output: 重新启动显示以下输出:
[QuartzScheduler] Quartz Scheduler v.1.6.0 created. [RAMJobStore] RAMJobStore initialized. [StdSchedulerFactory] Quartz scheduler 'QuartzScheduler' initialized from an externally provided properties instance. [StdSchedulerFactory] Quartz scheduler version: 1.6.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.