You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/12/03 10:59:00 UTC

[jira] [Commented] (CAMEL-12973) AbstractCamelWorkItemHandler init fails when WIH is loaded before CamelContext is created.

    [ https://issues.apache.org/jira/browse/CAMEL-12973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16706991#comment-16706991 ] 

ASF GitHub Bot commented on CAMEL-12973:
----------------------------------------

DuncanDoyle opened a new pull request #2649: CAMEL-12973: Init deferred to first call when WIH uses Deployment-sco…
URL: https://github.com/apache/camel/pull/2649
 
 
   …ped context in combination with Singleton RuntimeStrategy. Removed redundant double slash from 'direct' URL.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> AbstractCamelWorkItemHandler init fails when WIH is loaded before CamelContext is created.
> ------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-12973
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12973
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbpm
>    Affects Versions: 2.23.0
>            Reporter: Duncan Doyle
>            Assignee: Maciej Swiderski
>            Priority: Major
>
> When the AbstractCamelWorkItemHandler is created before the referenced CamelContext is created and registered, deployment of a KJAR fails with an IllegalArgumentException.
> This can happen when the deployment uses a combination of a Singleton RuntimeStrategy and a Deployment-scoped CamelContext. This is due to the fact that the jBPM KIE-Server extension runs after the jBPM extension.
> In such a situation we need to defer the creation of the ProducerTemplate until the first call to WIH.execute.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)