here are the versions that I use :

Version Camel : 1.6.0
Version activemq : fuse message broker 5.3
version java : 1.6

Thank you in advance,


Claus Ibsen-2 wrote:
> 
> Hi
> 
> You are using Camel 1.x which have some properties which are not the
> same as 2.0.
> 
> If you use a good IDE you get code completion in the XML editor and
> thus can see which properties you can use.
> 
> I recall its called: defaultDeadLetterEndpointUri in Camel 1.x instead
> of deadLetterUri
> 
> 
> On Wed, Sep 30, 2009 at 5:44 PM, titexe <abdellatifbouch...@eurofins.com>
> wrote:
>>
>> Hello,
>>
>> I want to setup the pattern "Dead Letter channel" for handling errors and
>> execption generated in my flow ( camel route).
>>
>> my setup is as follows:
>>
>> <camelContext id="camel"
>> xmlns="http://activemq.apache.org/camel/schema/spring";>
>>
>> <route errorHandlerRef="myDeadLetterChannel">
>> <from uri="activemq:queue:SMTP"/>
>> <t
>> uri="smtp://serv-smtp-fr:25?password=password&username=user&from=u...@localhost&to=u...@localhost"/>
>> </ route>
>>
>> </camelContext>
>>
>> <bean id="myDeadLetterChannel"
>> class="org.apache.camel.builder.DeadLetterChannelBuilder">
>> <property name="deadLetterUri" value="activemq:queue:error"/>
>> <property name="redeliveryPolicy" ref="myRedeliveryPolicy"/>
>> </bean>
>>
>> <bean id="myRedeliverPolicy"
>> class="org.apache.camel.processor.RedeliverPolicy">
>> <propery name="maximumRedeliveries" value="5"/>
>> <property name="delay" value="5000"/>
>> </bean>
>>
>> by starting ActiveMQ, I receive the following error :
>>
>> INFO  BrokerService                  - ActiveMQ JMS Message Broker
>> (FR03LAP621, ID:FR03LAP621-1730-1254324864897-0:0) stopped
>> ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean
>> with name 'myDeadLetterErrorHandler' defined in class path resource
>> [activemq.xml]: Error setting property values; nested exception is
>> org.springframe
>> work.beans.NotWritablePropertyException: Invalid property 'deadLetterUri'
>> of
>> bean class [org.apache.camel.builder.DeadLetterChannelBuilder]: Bean prop
>> erty 'deadLetterUri' is not writable or has an invalid setter method.
>> Does
>> the parameter type of the setter match the return type of the getter?
>> java.lang.RuntimeException: Failed to execute start task. Reason:
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean
>> with na
>> me 'myDeadLetterErrorHandler' defined in class path resource
>> [activemq.xml]:
>> Error setting property values; nested exception is org.springframework.be
>> ans.NotWritablePropertyException: Invalid property 'deadLetterUri' of
>> bean
>> class [org.apache.camel.builder.DeadLetterChannelBuilder]: Bean property
>> 'd
>> eadLetterUri' is not writable or has an invalid setter method. Does the
>> parameter type of the setter match the return type of the getter?
>>        at
>> org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98)
>>        at
>> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>>        at
>> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
>>        at
>> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>>        at
>> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
>>        at org.apache.activemq.console.Main.main(Main.java:106)
>>
>>
>> Thank you for helping me solve the problem,
>>
>> best regards,
>>
>> titexe
>> --
>> View this message in context:
>> http://www.nabble.com/Dead-Letter-Channel-%3A-Error-on-configuring-dead-letter-channel-tp25683735p25683735.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dead-Letter-Channel-%3A-Error-on-configuring-dead-letter-channel-tp25683735p25683873.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to