1 Reply Latest reply on Mar 8, 2012 10:39 AM by sekaijin

    Loading camel endpoint parameter from database

    lekkie_lomotayo

      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
          sekaijin

          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