Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14723

Adding a restConfiguration() make all rest properties to be ignored

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.2.0
    • Component/s: camel-core, camel-main
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Assuming we have a route defined like:

      import org.apache.camel.builder.RouteBuilder;
      
      public class Called extends RouteBuilder {
        @Override
        public void configure() throws Exception {
          restConfiguration();
      
          rest().get("/")
            .route()
            .setBody().constant("Ciao");
        }
      }
      

      Then any rest property like camel.rest.port=8080 is ignored and overridden by an empty RestConfiguration see RouteBuilder::populateRests

      It would be nice if the properties could be propagated to any `RestConfiguration`

        Attachments

          Activity

            People

            • Assignee:
              lb Luca Burgazzoli
              Reporter:
              lb Luca Burgazzoli
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m