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

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: