简体   繁体   English

在JBoss 4.2.x上升级到Quartz 1.6

[英]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-399QUARTZ-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.

相关问题 从 JBoss 4.2.x 升级到 JBoss 5.x、6.x、7.x 和 WildFly 8.x 的好处(和提示)? - Benefits (and tips) of an upgrade from JBoss 4.2.x to JBoss 5.x, 6.x, 7.x and WildFly 8.x? 使用JBoss 4.2.x,如何在不取消部署现有数据源的情况下部署新数据源? - Using JBoss 4.2.x, how can I deploy a new data source without undeploying existing ones? 在CAS 4.2.x中找不到ldaptive模式 - Unable to locate ldaptive schema in CAS 4.2.x 寻找适用于 mongodb 4.2.x 的替代结果投影 - Looking for alternative result projection that works on mongodb 4.2.x spring-ws 2.2.2与spring 4.2.x兼容吗? - Is spring-ws 2.2.2 compatible with spring 4.2.x? CAS 4.2.x deployerConfigContext.xml连接到LDAP - CAS 4.2.x deployerConfigContext.xml to connect to LDAP Hibernate 4.3.x和4.2.x之间是否在对抽象实现的类进行水合的方式上有所变化 - Is there a change between Hibernate 4.3.x and 4.2.x in how they hydrate abstract implemented classes 将项目A(Spring 4.2.x)添加为项目B(Spring Boot 2,Spring 5)的依赖项 - Add Project A (Spring 4.2.x) as dependency of Project B (Spring Boot 2, Spring 5) Webjars-locator 不适用于基于 XML 的 Spring MVC 4.2.x 配置? - Webjars-locator doesn't work with XML based Spring MVC 4.2.x configuration? 将Spring 4.1.X迁移到4.2.x,方法LocalSessionFactoryBean.setCacheRegionFactory(RegionFactory cacheRegionFactory)的第二级缓存问题 - Spring migration 4.1.X to 4.2.x 2nd level caching issue for method LocalSessionFactoryBean.setCacheRegionFactory(RegionFactory cacheRegionFactory)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM