You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by bonnahu <bo...@gmail.com> on 2013/11/25 21:14:26 UTC
Route with autoStartup="false" will start automatically when an
exception happens on consumer side
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 definition:
<route id="recievingMsgRoute" autoStartup="false" startupOrder="300">
<from uri =
"tibcoEMS:emsIncomingMsg?connectionInitiator=#emsMsgConnection" />
<to uri = "process1" />
<to uri = "seda1" />
</route>
Here is the exception message I got on tibco ems side:
[TIBCO EMS TCPLink Reader (Server-244)]
ERROR(TibcoEMSExceptionListener.java:46) - CONNECTION EXCEPTION: Connection
has been terminated
--
View this message in context: http://camel.465427.n5.nabble.com/Route-with-autoStartup-false-will-start-automatically-when-an-exception-happens-on-consumer-side-tp5743814.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
Posted by Willem jiang <wi...@gmail.com>.
How can you tell the route is started?
As camel-jms is based on spring-jms which can reconnect the JMS server.
From the exception, I can tell the camel-jms may reconnect the server but I don’t this can make the route start if it is never started before.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On Tuesday, November 26, 2013 at 4:14 AM, bonnahu wrote:
> 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 definition:
>
> <route id="recievingMsgRoute" autoStartup="false" startupOrder="300">
> <from uri =
> "tibcoEMS:emsIncomingMsg?connectionInitiator=#emsMsgConnection" />
> <to uri = "process1" />
> <to uri = "seda1" />
> </route>
>
> Here is the exception message I got on tibco ems side:
> [TIBCO EMS TCPLink Reader (Server-244)]
> ERROR(TibcoEMSExceptionListener.java:46) - CONNECTION EXCEPTION: Connection
> has been terminated
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Route-with-autoStartup-false-will-start-automatically-when-an-exception-happens-on-consumer-side-tp5743814.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).