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

Split route parsing from the main CamelContext api

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0.RC3
    • camel-core-api
    • None
    • Unknown

    Description

      In order to better separate all xml loading / parsing from the runtime, and in preparation of CAMEL-14053, it would be interesting to remove the two methods that accept an input stream and use JAXB underneath to load routes / rests definitions.

      From a user point-of-view, the work around is quite simple and it's just a matter of calling

       

      RoutesDefinition routes = ModelHelper.loadRoutesDefinition(context, inputStream);
      context.getExtension(Model.class).addRoutesDefinitions(routes.getRoutes());

       

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              gnodet Guillaume Nodet
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 20m
                  20m