camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <>
Subject Re: Enable disable routes at startup using Spring
Date Wed, 22 May 2013 02:37:27 GMT

How about importing routes from other XML files[1]?
You can put a dummy xml in you test resource directory which could be find first when you
doing the POC or testing.
When you want to run the route in production, you just need to make sure the dummy one is
not in the class path.


Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: |
Blog: ( (English)
 ( (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem

On Tuesday, May 21, 2013 at 10:28 PM, javaCzar wrote:

> Willem,
> My error in the last post. Your assitance with the {{xxx}} naming was
> correct. The variable is being set correctly and can be accessed bia this
> naming.
> I thought is was not working because what I am seeing that with
> "autoStartup=false" the endpoint still initializes, just the incoming data
> is not sent to the rest of the route.
> So, I guess this brings me to a second question. Is there a way to not
> initialize the endpoint via configuration. The reason that I need is for the
> following. I have an endpoint (QuickFIXj) that should not be connecting in
> certain circumstances For example, testing and dev instances should not
> attemtp to connect to a FIX server via this endpoint. However, prod
> instances need to have this enabled.  
> I would imagine that this scenario exixst for many connection based
> services/endpoints. Is there a way to configure the camelContext with what
> essentially would work like old school compiler derectives:
> something along the lines of:  
> <camelContext>
> <route>
> ....
> </route>
> #ifdef PROD
> <route>
> ....
> </route>
> #endif  
> </camelContext>
> Again, I know this code above is not valid, just an example of what I would
> need it to work like. As if it was not even there when not in prod.
> Thanks.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at (

View raw message