[jira] [Commented] (DELTASPIKE-913) QuartzScheduler uses BeanProvider.getContextualReference() for dependent scoped bean
[ https://issues.apache.org/jira/browse/DELTASPIKE-913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14562471#comment-14562471 ] Christian Kaltepoth commented on DELTASPIKE-913: I created a first version of a fix for this: https://github.com/chkal/deltaspike/commit/e5b436922e61046ca33390e85f2f64c9171a8fc1 I would like to hear your opinion on this. Any thoughts? QuartzScheduler uses BeanProvider.getContextualReference() for dependent scoped bean Key: DELTASPIKE-913 URL: https://issues.apache.org/jira/browse/DELTASPIKE-913 Project: DeltaSpike Issue Type: Bug Components: Scheduler Affects Versions: 1.4.0 Reporter: Christian Kaltepoth The scheduler module logs a warning for each invocation of a job: {code} 28-May-2015 09:12:35.001 WARNING [DefaultQuartzScheduler_Worker-2] org.apache.deltaspike.core.api.provider.BeanProvider.logWarningIfDependent BeanProvider shall not be used to create @Dependent scoped beans. Bean: Managed Bean [class org.apache.deltaspike.cdise.weld.WeldContextControl] with qualifiers [@Any @Default] {code} This is caused by {{JobListenerContext}} which uses {{BeanProvider.getContextualReference}} to get an instance of {{ContextControl}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DELTASPIKE-913) QuartzScheduler uses BeanProvider.getContextualReference() for dependent scoped bean
[ https://issues.apache.org/jira/browse/DELTASPIKE-913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14562657#comment-14562657 ] Gerhard Petracek commented on DELTASPIKE-913: - please rebase and push it QuartzScheduler uses BeanProvider.getContextualReference() for dependent scoped bean Key: DELTASPIKE-913 URL: https://issues.apache.org/jira/browse/DELTASPIKE-913 Project: DeltaSpike Issue Type: Bug Components: Scheduler Affects Versions: 1.4.0 Reporter: Christian Kaltepoth The scheduler module logs a warning for each invocation of a job: {code} 28-May-2015 09:12:35.001 WARNING [DefaultQuartzScheduler_Worker-2] org.apache.deltaspike.core.api.provider.BeanProvider.logWarningIfDependent BeanProvider shall not be used to create @Dependent scoped beans. Bean: Managed Bean [class org.apache.deltaspike.cdise.weld.WeldContextControl] with qualifiers [@Any @Default] {code} This is caused by {{JobListenerContext}} which uses {{BeanProvider.getContextualReference}} to get an instance of {{ContextControl}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)