1 Reply Latest reply on Mar 8, 2012 10:39 AM by Jean-Yves Terrien

    Loading camel endpoint parameter from database

    Lekan Omotayo Expert

      Hi all,

       

      Is it possible to load an endpoint parameter from a database instead of properties files?

       

      Regards.

        • 1. Re: Loading camel endpoint parameter from database
          Jean-Yves Terrien Newbie

          Yes.

           

          I'm use blue  print to define my route like this

           

           

           

           

          in foo.my.package I'm define a RouteBuilder Class.

           

          public class MyRouteBuilder extends RouteBuilder {

           

          in configure methode you can read your conf from where you want

           

               public void configure() {

               String inUrl;

          //read the config

               inUrl = getConfigFor("input.url");

          ...

          //and meke the route

                  from(inUrl)

          ...

           

          A+JYT