[ 
https://issues.apache.org/jira/browse/CAMEL-12712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jesse Sightler updated CAMEL-12712:
-----------------------------------
    Description: 
Reproducer project:

https://github.com/jsight/camel-salesforce-http-aggregator-issue

 

Run the unit tests and you will observe it hanging.

 

A workaround is also present. Uncomment this line:
{quote}// .to("seda:enrichWithJobId?waitForTaskToComplete=Always")
{quote}
 

The code that hangs is this:
{quote}.enrich("direct:createJobAndGetID", new AggregationStrategy() {
 @Override
 public Exchange aggregate(Exchange oldExchange, Exchange newExchange)
Unknown macro: \{ oldExchange.getIn().setHeader("jobId", 
newExchange.getIn().getBody(JobInfo.class).getId()); return oldExchange; }
})
{quote}
 

 

 

  was:
Run 
[Style|https://issues.apache.org/jira/projects/CAMEL?selectedItem=com.atlassian.jira.jira-projects-plugin:components-page]the
 unit tests and you will observe it hanging.

 

A workaround is also present. Uncomment this line:
{quote}// .to("seda:enrichWithJobId?waitForTaskToComplete=Always")
{quote}
 

The code that hangs is this:
{quote}
 .enrich("direct:createJobAndGetID", new AggregationStrategy() {
 @Override
 public Exchange aggregate(Exchange oldExchange, Exchange newExchange) {
 oldExchange.getIn().setHeader("jobId", 
newExchange.getIn().getBody(JobInfo.class).getId());
 return oldExchange;
 }
 })
{quote}
 

 

 


> Camel Salesforce can easily hang when used within an aggregator
> ---------------------------------------------------------------
>
>                 Key: CAMEL-12712
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12712
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-salesforce
>            Reporter: Jesse Sightler
>            Priority: Major
>
> Reproducer project:
> https://github.com/jsight/camel-salesforce-http-aggregator-issue
>  
> Run the unit tests and you will observe it hanging.
>  
> A workaround is also present. Uncomment this line:
> {quote}// .to("seda:enrichWithJobId?waitForTaskToComplete=Always")
> {quote}
>  
> The code that hangs is this:
> {quote}.enrich("direct:createJobAndGetID", new AggregationStrategy() {
>  @Override
>  public Exchange aggregate(Exchange oldExchange, Exchange newExchange)
> Unknown macro: \{ oldExchange.getIn().setHeader("jobId", 
> newExchange.getIn().getBody(JobInfo.class).getId()); return oldExchange; }
> })
> {quote}
>  
>  
>  



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

Reply via email to