Re: Camel route - autostartup - no endpoint found

2015-03-16 Thread ychawla
lContext.removeRoute("myServiceRoute"); LOG.info("Removed route" + removed); } Any other ideas? Is it possible to conditionally import a route context based on a Spring profile? Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/C

Camel route - autostartup - no endpoint found

2015-03-16 Thread ychawla
Hello All, I have a route with autoStartup set to 'false'. However, Camel will still try to resolve the endpoint in the 'from' URI on the route. For example: However, I don't have 'myCXFServiceEndpoint' defined because the Spri

Re: Camel Route autostartup with Spring Profiles

2015-03-12 Thread ychawla
age in context: http://camel.465427.n5.nabble.com/Camel-Route-autostartup-with-Spring-Profiles-tp5764047p5764062.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel Route autostartup with Spring Profiles

2015-03-12 Thread ychawla
Spring profile? Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Route-autostartup-with-Spring-Profiles-tp5764047.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Route with autoStartup="false" will start automatically when an exception happens on consumer side

2013-11-25 Thread Willem jiang
route which has been set to autoStartup="false". It is working > correctly as I expected. > However, when there is an exception thrown on the consumer tibcoEMS side, > the route would start automatically. Is there a way to prevent it? > > Here is the route definition: >

Route with autoStartup="false" will start automatically when an exception happens on consumer side

2013-11-25 Thread bonnahu
Hi all, I have a route which has been set to autoStartup="false". It is working correctly as I expected. However, when there is an exception thrown on the consumer tibcoEMS side, the route would start automatically. Is there a way to prevent it? Here is the route

Re: How to use PropertyPlaceholderConfigurer to configure the autoStartup option

2013-07-16 Thread bonnahu
Hi Willem, I am using 2.10.1. Thanks -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-PropertyPlaceholderConfigurer-to-configure-the-autoStartup-option-tp5735604p5735754.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to use PropertyPlaceholderConfigurer to configure the autoStartup option

2013-07-16 Thread bonnahu
Hi Claus, It works for me! Thanks a lot! -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-PropertyPlaceholderConfigurer-to-configure-the-autoStartup-option-tp5735604p5735753.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to use PropertyPlaceholderConfigurer to configure the autoStartup option

2013-07-14 Thread Willem jiang
Hi Which version of Camel are you using? This issue is related to the schema definition, I think you need to disable the Spring schema validation[1] I just checked the latest camel spring schema, the attribute type of autoStartup is string now, which means you will not hit this kind of issue

Re: How to use PropertyPlaceholderConfigurer to configure the autoStartup option

2013-07-14 Thread Claus Ibsen
Hi See this page http://camel.apache.org/using-propertyplaceholder.html The syntax to use inside is {{ }} On Sat, Jul 13, 2013 at 11:38 PM, bonnahu wrote: > Hey guys, > I am new to Camel. Currently, I want to use PropertyPlaceholderConfigurer to > specify the autoStartup option

How to use PropertyPlaceholderConfigurer to configure the autoStartup option

2013-07-13 Thread bonnahu
Hey guys, I am new to Camel. Currently, I want to use PropertyPlaceholderConfigurer to specify the autoStartup option in Camel route. Here is the PropertyPlaceholderConfigurer bean

Re: Camel context autostartup

2012-11-02 Thread Claus Ibsen
gt;> Regards, >>> Benjamin >>> >>> Original-Nachricht >>>> Datum: Tue, 30 Oct 2012 15:23:49 +0100 >>>> Von: Claus Ibsen >>>> An: users@camel.apache.org >>>> Betreff: Re: Camel context autostartup >>> >

Re: Camel context autostartup

2012-10-30 Thread Benjamin Graf
gure in Spring XML to invoke this NO_START method and set >its value to false. > > > > > >> Regards, >> Benjamin >> >> Original-Nachricht >>> Datum: Tue, 30 Oct 2012 15:23:49 +0100 >>> Von: Claus Ibsen >>>

Re: Camel context autostartup

2012-10-30 Thread Claus Ibsen
its value to false. > Regards, > Benjamin > > Original-Nachricht >> Datum: Tue, 30 Oct 2012 15:23:49 +0100 >> Von: Claus Ibsen >> An: users@camel.apache.org >> Betreff: Re: Camel context autostartup > >> Hi >> >> The do

Re: Camel context autostartup

2012-10-30 Thread Benjamin Graf
Hi Claus, Thanks so far. But did you find a workaround for setting the NO_START flag? Regards, Benjamin Original-Nachricht > Datum: Tue, 30 Oct 2012 15:23:49 +0100 > Von: Claus Ibsen > An: users@camel.apache.org > Betreff: Re: Camel context autostartup &

Re: Camel context autostartup

2012-10-30 Thread Claus Ibsen
Hi The documentation for autoStartup did indicate the current behavior http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/RuntimeConfiguration.html#setAutoStartup(java.lang.Boolean) I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-5759 On Mon, Oct 29

Re: Camel context autostartup

2012-10-29 Thread Benjamin Graf
Original-Nachricht > Datum: Mon, 29 Oct 2012 13:20:09 +0100 > Von: Claus Ibsen > An: users@camel.apache.org > Betreff: Re: Camel context autostartup > On Mon, Oct 29, 2012 at 1:09 PM, Benjamin Graf > wrote: > > The "poor" OSGi runtime is JBos

Re: Camel context autostartup

2012-10-29 Thread Claus Ibsen
nto JBoss. > > May be the Fuse (RedHat) guys out there can tell something about that! ;-) I could tell you, but then I would have to kill you :) Okay just kidding of course. I know the autoStartup name is a poor name on the but it was as said inheirted from the routes. Are you using spring-d

Re: Camel context autostartup

2012-10-29 Thread Benjamin Graf
about that! ;-) Original-Nachricht > Datum: Mon, 29 Oct 2012 12:21:24 +0100 > Von: Claus Ibsen > An: users@camel.apache.org > Betreff: Re: Camel context autostartup > On Mon, Oct 29, 2012 at 11:36 AM, Benjamin Graf > wrote: > > > > Original-Nachric

Re: Camel context autostartup

2012-10-29 Thread Claus Ibsen
On Mon, Oct 29, 2012 at 11:36 AM, Benjamin Graf wrote: > > Original-Nachricht >> Datum: Mon, 29 Oct 2012 10:30:36 +0100 >> Von: Claus Ibsen >> An: users@camel.apache.org >> Betreff: Re: Camel context autostartup > >> On Mon, Oct 29, 20

Re: Camel context autostartup

2012-10-29 Thread Benjamin Graf
Original-Nachricht > Datum: Mon, 29 Oct 2012 10:30:36 +0100 > Von: Claus Ibsen > An: users@camel.apache.org > Betreff: Re: Camel context autostartup > On Mon, Oct 29, 2012 at 10:25 AM, Benjamin Graf > wrote: > > Hi Claus, > > > > thanks s

Re: Camel context autostartup

2012-10-29 Thread Claus Ibsen
Oct 2012 09:33:49 +0100 >> Von: Claus Ibsen >> An: users@camel.apache.org >> Betreff: Re: Camel context autostartup > >> The autostartup options is for controlling if *routes* should be auto >> started or not. >> Not the actual CamelContext itself. >> >

Re: Camel context autostartup

2012-10-29 Thread Benjamin Graf
amel context autostartup > The autostartup options is for controlling if *routes* should be auto > started or not. > Not the actual CamelContext itself. > > The naming could have been better, but the option was first on > and then later inherited on to make a single switch. >

Re: Camel context autostartup

2012-10-29 Thread Claus Ibsen
The autostartup options is for controlling if *routes* should be auto started or not. Not the actual CamelContext itself. The naming could have been better, but the option was first on and then later inherited on to make a single switch. On Sat, Oct 27, 2012 at 4:57 PM, Benjamin Graf wrote

Re: Camel context autostartup

2012-10-27 Thread Benjamin Graf
> On Sat, Oct 27, 2012 at 4:57 PM, Benjamin Graf wrote: > >> Hi, >> >> can anybody explain me why camel context state is set to started if >> autostartup >> is set to false? This sound a bit odd to me. >> >> Best, >> Benjamin >> >> > > -- > signature.asc Description: OpenPGP digital signature

Re: Camel context autostartup

2012-10-27 Thread Christian Müller
Which version do you use? Can you share your code? Best, Christian On Sat, Oct 27, 2012 at 4:57 PM, Benjamin Graf wrote: > Hi, > > can anybody explain me why camel context state is set to started if > autostartup > is set to false? This sound a bit odd to me. > > Best, > Benjamin > > --

Camel context autostartup

2012-10-27 Thread Benjamin Graf
Hi, can anybody explain me why camel context state is set to started if autostartup is set to false? This sound a bit odd to me. Best, Benjamin signature.asc Description: OpenPGP digital signature

Re: autoStartup and Endpoints

2012-10-09 Thread Claus Ibsen
validation of the route up front. On Tue, Aug 28, 2012 at 6:11 PM, lpezet wrote: > Hello! > > If I'm reading the documentation correctly, *autoStartup* is to allow the > context or route to start automatically or not when Camel/Spring starts. > > However, regard

Re: autoStartup and Endpoints

2012-08-30 Thread Charles Moulliard
You should consider to use http://camel.apache.org/routepolicy.html to define when (= if the Amazon S3 conditions matches) and how we could start/stop Apache Camel routes On Tue, Aug 28, 2012 at 6:11 PM, lpezet wrote: > Hello! > > If I'm reading the documentation correctly, *auto

autoStartup and Endpoints

2012-08-28 Thread lpezet
Hello! If I'm reading the documentation correctly, *autoStartup* is to allow the context or route to start automatically or not when Camel/Spring starts. However, regardless of that setting, a *ScheduledPollEndpoint.doStart()* is called. Should we consider endpoints as part of a route?

Re: CamelContext autoStartup="false" not working

2012-08-24 Thread livensn
I see. Thanks for the explanation Claus -- View this message in context: http://camel.465427.n5.nabble.com/CamelContext-autoStartup-false-not-working-tp5717994p5718009.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CamelContext autoStartup="false" not working

2012-08-24 Thread Claus Ibsen
the routes are runnable. Now whether the route is actually started or not, that's the autoStartup option is for. So that is why you see the LOGGER code being invoked above. But if you add a route, eg like from("timer:foo?period=5s").log("I am invoked"); Then that rout

Re: CamelContext autoStartup="false" not working

2012-08-24 Thread livensn
ption { LOGGER.info("Route started bro."); } } So, I haven't done anything special. The route just gets started. -- View this message in context: http://camel.465427.n5.nabble.com/CamelContext-autoStartup-false-not-working-tp5717994p5718005.html Sent from the Camel - Users mai

Re: CamelContext autoStartup="false" not working

2012-08-24 Thread Claus Ibsen
On Fri, Aug 24, 2012 at 12:38 PM, livensn wrote: > Hi all, > > I have this configuration : > > http://camel.apache.org/schema/spring";> > > > > xmlns="http://camel.apache.org/schema/spring"; autoStartup="false"> > &

CamelContext autoStartup="false" not working

2012-08-24 Thread livensn
Hi all, I have this configuration : http://camel.apache.org/schema/spring";> http://camel.apache.org/schema/spring"; autoStartup="false"> The first camelcontext should start automatically as it does. The second shouldn't start automaticall

Re: Odd info logs about startup w/ autoStartup=false

2011-12-05 Thread Jason Dillon
On Dec 1, 2011, at 1:33 AM, Claus Ibsen wrote: > Yeah the wording could be improved. Any recommendation? Is it important to log this information as INFO level? I don't see any of the other attributes of a route logged in this fashion. Is it common that folks set autoStartup(false)

Re: Odd info logs about startup w/ autoStartup=false

2011-12-05 Thread Claus Ibsen
reason why these are at INFO level in DefaultCamelContext? >> >> >> if (doNotStartRoutesOnFirstStart) { >>    log.info("Cannot start routes as CamelContext has been configured with >> autoStartup=false"); >> } >> >> >> >>

Re: Odd info logs about startup w/ autoStartup=false

2011-12-01 Thread Claus Ibsen
has been configured with > autoStartup=false"); > } > > > > if (addingRoute && !autoStartup) { >    log.info("Cannot start route " + routeService.getId() + " as its > configured with autoStartup=false"); >    continue; > } > >

Odd info logs about startup w/ autoStartup=false

2011-11-30 Thread Jason Dillon
Any reason why these are at INFO level in DefaultCamelContext? if (doNotStartRoutesOnFirstStart) { log.info("Cannot start routes as CamelContext has been configured with autoStartup=false"); } if (addingRoute && !autoStartup) { log.info("Cannot start route

RE: autostartup

2011-08-31 Thread Damian Harvey
...@gmail.com] Sent: Wednesday, 31 August 2011 4:33 PM To: users@camel.apache.org Subject: Re: autostartup That is a new feature in Camel 2.9 http://camel.apache.org/camel-290-release.html But I will fix the docs so it mention that it requires Camel 2.9 or better. Thanks for reporting. On Wed, Aug 31, 2011

Re: autostartup

2011-08-31 Thread Tarjei Huse
On 08/31/2011 02:06 AM, Damian Harvey wrote: > The docs say that you can set whether to autostart a route based on a > boolean, string or property > > from("activemq:queue:special").autoStartup(startupRoute).to("file://backup"); > > However it looks like au

Re: autostartup

2011-08-30 Thread Claus Ibsen
ute based on a > boolean, string or property > > from("activemq:queue:special").autoStartup(startupRoute).to("file://backup"); > > However it looks like autoStartup() has been removed (or never was in) the > fluent API for RouteDefinition. What is the recommen

Re: autostartup

2011-08-30 Thread Willem Jiang
Hi Which version of Camel are you using ? I just checked the current trunk code (Camel 2.9-SNAPSHOT), and found there is an autoStartup() fluent API can be used. On 8/31/11 8:06 AM, Damian Harvey wrote: The docs say that you can set whether to autostart a route based on a boolean, string

autostartup

2011-08-30 Thread Damian Harvey
The docs say that you can set whether to autostart a route based on a boolean, string or property from("activemq:queue:special").autoStartup(startupRoute).to("file://backup"); However it looks like autoStartup() has been removed (or never was in) the fluent API for RouteDef

Re: camelContext autoStartup=false does not prevent Camel from starting when Spring context starts

2011-05-25 Thread Alexey Vinogradov
handle event: " + event); } } -- View this message in context: http://camel.465427.n5.nabble.com/camelContext-autoStartup-false-does-not-prevent-Camel-from-starting-when-Spring-context-starts-tp4421992p4425168.html Sent from the Camel - Users mailing list archive at Nabble.com.

camelContext autoStartup=false does not prevent Camel from starting when Spring context starts

2011-05-24 Thread Alexey Vinogradov
The result I want to achieve is to start Camel context only after Spring context.start() completes. The solution with using camelContext autoStartup=false described http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html works with Camel 2.4.0 but fails to work with Camel

Re: route cannot be started, if autoStartup="false" is set

2011-05-06 Thread Jimmy Rueedi
route-cannot-be-started-if-autoStartup-false-is-set-tp4375506p4376190.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: route cannot be started, if autoStartup="false" is set

2011-05-06 Thread davsclaus
: http://www.manning.com/ibsen/ -- View this message in context: http://camel.465427.n5.nabble.com/route-cannot-be-started-if-autoStartup-false-is-set-tp4375506p4375941.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: route cannot be started, if autoStartup="false" is set

2011-05-06 Thread davsclaus
Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/ -- View this message in context: http://camel.465427.n5.nabble.com/route-cannot-be-started-if-autoStartup-false-is-set-tp4375506p4375587.html Sent from the Camel - Use

Re: autoStartup option of jms component

2010-08-27 Thread Claus Ibsen
Hi Charles Learn to look in the unit tests. See JmsAutoStartupTest On Fri, Aug 27, 2010 at 1:48 PM, Charles Moulliard wrote: > Hi, > > Using the following JMS option (autoStartup), it is possible to start/stop > the connection with the JMS broker. So using the following uri defi

autoStartup option of jms component

2010-08-27 Thread Charles Moulliard
Hi, Using the following JMS option (autoStartup), it is possible to start/stop the connection with the JMS broker. So using the following uri definition, we can stop the listener when we create the route "uri="activemq:queue:toto?autoStartup=false". Is there a way to change this