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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: fuse-7.0
    • Component/s: FIS-Camel
    • Labels:
      None
    • Environment:

      Fuse Integration Services 2.0 (Camel 2.2.170.redhat-000019)

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kboone Kevin Boone
                Tester:
                Jan Bouska
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: