Uploaded image for project: 'FUSE ESB'
  1. FUSE ESB
  2. ESB-1458

camel-nmr producer should support timeout

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: Major
    • Resolution: Resolved at Apache
    • Affects Version/s: 4.2.0-fuse-02-00
    • Fix Version/s: 4.4.0-fuse-00-27
    • Component/s: None
    • Labels:
      None

      Description

      Would be nice to be able to do something like .to("nmr:contentenricher?timeout=10000"). Right now, it is not possible to specify a timeout and you have to do something like the following as a workaround:

      from("direct:mytest").process(new Processor() {                    
                          public void process(Exchange exchange) throws Exception {
                              Future<Exchange> future = getContext().createProducerTemplate().asyncSend("nmr:contentenricher", exchange);
                              Exchange result = future.get(10000, TimeUnit.MILLISECONDS);
                              exchange.setOut(result.getOut());
                          }
                      });

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gertv Gert Vanthienen
                Reporter:
                janstey Jonathan Anstey
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: