Hi
You *must* set some exception the failover should loadbalance
http://camel.apache.org/load-balancer.html
<loadBalance>
<failover>
<exception>java.io.IOException</exception>
<exception>com.mycompany.MyOtherException</exception>
</failover>
<to uri="direct:a"/>
<to uri="direct:b"/>
</loadBalance>
I do think however we should add a silent default that if none
provided it will failover.
On Mon, Jan 11, 2010 at 2:58 PM, yaog <[email protected]> wrote:
>
> Adding this option still does not work. Looks like the problematic request
> get's lost.
>
> Here is a snippet from the log:
>
> [DefaultErrorHandler] [DefaultMessageListenerContainer-1]: DEBUG: Failed
> delivery for exchangeId: ID:yogenLT1-4138-1263218053203-2:7:1:1:1. On
> delivery attempt: 0 caught: java.lang.RuntimeException: testing failover!
> [DefaultErrorHandler] [DefaultMessageListenerContainer-1]: DEBUG: This
> exchange is not handled so its marked as failed: Exchange[JmsMessage:
> ActiveMQTextMessage {commandId = 5, responseRequired = true, messageId =
> ID:yogenLT1-4138-1263218053203-2:7:1:1:1, originalDestination = null,
> originalTransactionId = null, producerId =
> ID:yogenLT1-4138-1263218053203-2:7:1:1, destination = queue://compB,
> transactionId = null, expiration = 0, timestamp = 1263218054671, arrival =
> 0, brokerInTime = 1263218054671, brokerOutTime = 1263218054671,
> correlationId = null, replyTo = null, persistent = true, type = null,
> priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
> compressed = false, userID = null, content = null, marshalledProperties =
> org.apache.activemq.util.byteseque...@6147d9, dataStructure = null,
> redeliveryCounter = 0, size = 0, properties =
> {CamelBeanMultiParameterArray=false}, readOnlyProperties = true,
> readOnlyBody = true, droppable = false, text = In A: GO HA 5}]
>
> in bold the exception thrown and log about message failing. why no
> failover???
> --
> View this message in context:
> http://old.nabble.com/fail-over-does-not-work-with-jms----tp27110432p27110764.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus