[QTZ-113] Quartz starts unmanaged threads and J2EE context is not propagated to the job threads Created: 05/Jan/11 Updated: 09/Mar/14 Resolved: 12/May/11 Status: Project: Component/s: Affects Version/s: Fix Version/s: Closed Quartz Scheduler Core, ThreadPools 1.6.6 Type: Reporter: Resolution: Labels: Remaining Estimate: Time Spent: Original Estimate: Bug Stephane Nicoll Fixed None Not Specified Attachments: 1.8.x.patch Issue Links: Terracotta Target: 1.8.6, 2.0.2 1 Critical Ludovic Orban 5 Priority: Assignee: Votes: Not Specified Not Specified QTZ-113.patch trunk.patch Related is related to QTZ-194 Quartz starts unmanaged threads in Jo... is related to QTZ-233 CLONE -Quartz starts unmanaged thread... Closed Closed Unknown Description This is a request to apply the patch that was created in the previous jira instance: http://jira.opensymphony.com/browse/QUARTZ-743 We are integrating Quartz with Websphere 7 and we are affected by the issue as well. We have applied the patch locally and it now runs fine. Could you please schedule this one for the next bugfix release? BTW, are the open issues in the old jira instance still handled? Comments Comment by James House [ 06/Jan/11 ] Issues in the old jira instance are not handled - I went through them and moved over (copied) those that I wanted "take on", and left all others behind - assuming if there's one somebody still needs something done with, they'll b up here - as you have. The issue in question is a Websphere oddity, and only affects some Websphere users, and the patch is very non-i for other environments (the dependency on WorkManager), so I have been hesitant to apply it to Quartz. I'll keep this on the list to evaluate packaging options (e.g. possibly a separate build/JAR distribution for the exec with the dependency - much like the already existing quartz-weblogic and quartz-oracle packages). Comment by Stephane Nicoll [ 04/Feb/11 ] Patch against the 1.8.x branch: http://svn.terracotta.org/svn/quartz/branches/quartz-1.8.x/ Completely based on the original patch submitted in QUARTZ-743 by Matt Accola. There is a separate project to avoid polluting the dependency tree with the commonj specific implementation (se quartz-commonj). The library is public but you may need to add the following repo to get it: http://maven.glassfish.org/content/groups/glassfish/com/bea/commonj/com.springsource.commonj/1.1.0/ Tested successfully on Websphere 7 and JBoss 4.2 Comment by Ludovic Orban [ 23/Feb/11 ] Attached reviewed and adapted patches for trunk and 1.8.x branch. Comment by Fiona OShea [ 23/Feb/11 ] Stephane can you please fill out and submit a Contributor agreement? http://www.terracotta.org/confluence/download/attachments/786516/Individual+Contributor+Agreement.pdf?ve We need this before we can integrate your changes. Thanks Comment by James House [ 23/Feb/11 ] Fiona, the code Stephane attached to this issue was actually taken from QUARTZ-743 (in old, OpenSymphony J which was authored and submitted by Matt Accola, and posted to OpenSymphony before Terracotta's manageme Quartz. Comment by Fiona OShea [ 22/Mar/11 ] This still needs to be signed according to our legal dept. Comment by Stephane Nicoll [ 10/May/11 ] I contacted the original author of the patch and asked him to sign the CA. Comment by Fiona OShea [ 11/May/11 ] Thanks Stephane, we received the signed CA and Ludovic is working on it. Comment by Ludovic Orban [ 12/May/11 ] Patch applied on trunk as well as 1.8.x and 2.0.x branches Comment by Stefan Gybas [ 20/Jul/11 ] There are two other threads that are started in their initialize() method: JobStoreSupport$MisfireHandler JobStoreSupport$ClusterManager They should probably also be started using the new ThreadExecutor. Comment by Ludovic Orban [ 20/Jul/11 ] Can you open a new issue to track this new task? Thanks! Comment by Stefan Gybas [ 20/Jul/11 ] Done. Comment by Stefan Gybas [ 09/Mar/14 ] I've written an article about running Quartz with managed threads on WebSphere: http://gybas.com/2014/quartz-websphere-spring/ A sample project that uses the Spring framework is available from https://github.com/sgybas/quartz-websphere-spring Generated at Tue Feb 09 07:51:14 PST 2016 using JIRA 6.2.4#6261sha1:4d2e6f6f26064845673c8e7ffe9b6b84b45a6e79.