Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8750

Can't specify camel REST producer target URI in FIS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.0
    • None
    • FIS-Camel
    • None
    • % %

      Neither of the methods described for specifying the target URI of a Camel REST invocation using a camel-rest endpoint in the documentation [1] works.

      This method:

      restConfiguration().host("myserver:8080/foo")
      

      works so long as there is only one route in the application using a camel-rest producer.

      This method:

      to("rest:get:hello/{me}?host=myserver:8080/foo");
      

      does not work at all, because the argument of "host" is treated as an object in the registry, not a String.

      [1] https://github.com/apache/camel/blob/master/camel-core/src/main/docs/rest-component.adoc

              Unassigned Unassigned
              rhn-support-kboone Kevin Boone
              Jan Bouska Jan Bouska
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: