You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Tom Howe <to...@gmail.com> on 2012/01/27 12:11:47 UTC

Delays and Transactions

Hi,
2 Questions..

1) If I use asyncDelayed(), do I lose any transactionallity on the
route (due to crossing threads)?

from("activemq:queue:foo").transacted().delay(1000).asyncDelayed().to("activemq:aDelayedQueue");


2) The spring DSL for setting delay time with <method/> does not
appear to work. providing any values for ref or method has no effect,
including invalid ones.

<camel:delay>
              <camel:method ref="retryDelayCompute" method="computeDelay"/>
              <camel:to ref="endpoint-submit-in" />
 </camel:delay>

The message is routed but not delay is applied and computeDelay() is not called.

Advice greatly appreciated.

Thanks, Tom

Re: Delays and Transactions

Posted by Tom Howe <to...@artcore.com>.
ok thanks.

On Fri, Jan 27, 2012 at 1:02 PM, Claus Ibsen <cl...@gmail.com> wrote:
> Hi
>
> Ad 1)
> Yes
>
> Ad 2)
> Thanks for reporting. I have logged a ticket
> https://issues.apache.org/jira/browse/CAMEL-4947
>
>
> On Fri, Jan 27, 2012 at 12:11 PM, Tom Howe <to...@gmail.com> wrote:
>> Hi,
>> 2 Questions..
>>
>> 1) If I use asyncDelayed(), do I lose any transactionallity on the
>> route (due to crossing threads)?
>>
>> from("activemq:queue:foo").transacted().delay(1000).asyncDelayed().to("activemq:aDelayedQueue");
>>
>>
>> 2) The spring DSL for setting delay time with <method/> does not
>> appear to work. providing any values for ref or method has no effect,
>> including invalid ones.
>>
>> <camel:delay>
>>              <camel:method ref="retryDelayCompute" method="computeDelay"/>
>>              <camel:to ref="endpoint-submit-in" />
>>  </camel:delay>
>>
>> The message is routed but not delay is applied and computeDelay() is not called.
>>
>> Advice greatly appreciated.
>>
>> Thanks, Tom
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: cibsen@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/

Re: Delays and Transactions

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Ad 1)
Yes

Ad 2)
Thanks for reporting. I have logged a ticket
https://issues.apache.org/jira/browse/CAMEL-4947


On Fri, Jan 27, 2012 at 12:11 PM, Tom Howe <to...@gmail.com> wrote:
> Hi,
> 2 Questions..
>
> 1) If I use asyncDelayed(), do I lose any transactionallity on the
> route (due to crossing threads)?
>
> from("activemq:queue:foo").transacted().delay(1000).asyncDelayed().to("activemq:aDelayedQueue");
>
>
> 2) The spring DSL for setting delay time with <method/> does not
> appear to work. providing any values for ref or method has no effect,
> including invalid ones.
>
> <camel:delay>
>              <camel:method ref="retryDelayCompute" method="computeDelay"/>
>              <camel:to ref="endpoint-submit-in" />
>  </camel:delay>
>
> The message is routed but not delay is applied and computeDelay() is not called.
>
> Advice greatly appreciated.
>
> Thanks, Tom



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/