1 Reply Latest reply on Dec 15, 2009 8:47 PM by Willem Jiang

    testing and deploying routes using configuration parameters

    Lyfe Musique Novice

      Based on what I've read on Camel and route testing with mock endpoints, I would have to define the routes twice for my scenario.  Once for testing and again for deployment.


      I'm using Java DSL to code my routes.  Is there a way to code the routes once and, somehow, configure parameters representing endpoints to point to different endpoints?  Eg, doing testing, I would use mock:start and mock:results..however, when deployed, would use jbi endpoints.  This change would be similar to having a property file.


      An example route I'm using is: