Re: Original message body lost in transacted route

2009-11-20 Thread Claus Ibsen
Hi Your problem is that you defined a route as onException(Exception.class) .handled(true) .useOriginalBody() .maximumRedeliveries(2) .to("mock:error"); from("activemq:broken")

Re: Jms remoting failover problem

2009-11-20 Thread Willem Jiang
Hi, I think you need to ask the configuration question on ActiveMQ mailing list. As camel-jms nothing about about the underlay MQ's protocol. it can't be configured from camel :( Willem Ming Fang wrote: Does anyone know of a fix for this? This is a critical problem for us, and for many I w

Re: Jms remoting failover problem

2009-11-20 Thread Claus Ibsen
On Sat, Nov 21, 2009 at 7:18 AM, Ming Fang wrote: > Does anyone know of a fix for this? > This is a critical problem for us, and for many I would think since this is a > very typical configuration. > Have you asked /searched at the AMQ forum also? Try creating a small application that demonstra

Re: Jms remoting failover problem

2009-11-20 Thread Ming Fang
Does anyone know of a fix for this? This is a critical problem for us, and for many I would think since this is a very typical configuration. On Nov 19, 2009, at 6:59 AM, Ming Fang wrote: > Yes changing idelTimeOut in org.apache.activemq.pool.ConnectionPool to a very > large number would be a

Re: Unexpected behaviour of TransactionErrorHandler?

2009-11-20 Thread Claus Ibsen
On Fri, Nov 20, 2009 at 10:41 AM, Martin Krasser wrote: > ... not part of the Camel 2.0.0 Javadocs ... > Ah my bad. I missed your obvious statement about using 2.0.0. And the new markRollbackOnly() was added in 2.1. And hence its of course not mentioned in the javadoc. Sorry for sounding rudy or

Re: DeadLetter - Get Stack Trace

2009-11-20 Thread Claus Ibsen
On Sat, Nov 21, 2009 at 4:57 AM, sub3 wrote: > > Hi, > > I have the dead letter channel set up to catch errors: > errorHandler(deadLetterChannel("bean:DeadLetterChannelProcessor?method=handleError").maximumRedeliveries(1)); > > I am getting the incoming object that is causing the error, but I woul

Re: Create a route in disabled mode

2009-11-20 Thread Claus Ibsen
On Fri, Nov 20, 2009 at 5:29 PM, mantay wrote: > > I am looking for a simple method to define (in Spring XML) a route which is > deployed but disabled at startup time. Something like this: > > >     >     > > > I don't see a way how to do that. Actually, it should be possible because in > the we

DeadLetter - Get Stack Trace

2009-11-20 Thread sub3
Hi, I have the dead letter channel set up to catch errors: errorHandler(deadLetterChannel("bean:DeadLetterChannelProcessor?method=handleError").maximumRedeliveries(1)); I am getting the incoming object that is causing the error, but I would also like to get the error/exception this is thrown. I

Original message body lost in transacted route

2009-11-20 Thread Dragisa Krsmanovic
I have a transacted route and onException clause that tells Camel to use original body on redelivery. If I modify body somewhere in the route, I am expecting to still receive original body on redelivery. That works fine if I do something like setBody(constant("xyz")), but if I use setBody(bean("

Re: Camel : slow processing of messages

2009-11-20 Thread Ashwin Karpe
Hi, Looks like there is something wrong with your route. There is no consumer established on the queue (i.e (consumer count is zero)... This can be a problem if there is no message expiry set and you each the memory and persistence limits set for the broker at broker start-up. You will max out t

Create a route in disabled mode

2009-11-20 Thread mantay
I am looking for a simple method to define (in Spring XML) a route which is deployed but disabled at startup time. Something like this: I don't see a way how to do that. Actually, it should be possible because in the web console one may stop and restart a route already. What is the

Re: Camel : schedule the move of messages

2009-11-20 Thread Ashwin Karpe
Hi, You could do the following from("timer://foo?period=360"). process (new Processor(Exchange exchange) { exchange.getOut().setBody("My FooBar Message"); }). to(activemq:MyQueue); from

Re: Camel : schedule the move of messages

2009-11-20 Thread Ashwin Karpe
Hi, You could do the following from("timer://foo?period=360"). process (new Processor(Exchange exchange) { exchange.getOut().setBody("My FooBar Message"); }). to(activemq:MyQueue); from

Re: Camel : schedule the move of messages

2009-11-20 Thread Dmitry Ulanov
Sorry for my example, just see "Timer based polling consumer" paragraph on http://camel.apache.org/polling-consumer.html. On Fri, Nov 20, 2009 at 6:40 PM, Dmitry Ulanov wrote: > new Thread(new Runnable() { > @Override public void run() { >

Re: Camel : schedule the move of messages

2009-11-20 Thread Dmitry Ulanov
new Thread(new Runnable() { @Override public void run() { try { PollingConsumer consumer = getContext().getEndpoint("activemq:queue1").createPollingConsumer(); Producer pr

Re: Camel : slow processing of messages

2009-11-20 Thread Dmitry Ulanov
May be it's a bug. If you stop camel via JMX, after restart queue subscriptions aren't restored. Clause, do you know anything about it? On Fri, Nov 20, 2009 at 6:31 PM, titexe wrote: > > the problem, when i look of the attributes of this queue, i found > ConsumerCount 0 and the route of camel is

Camel : schedule the move of messages

2009-11-20 Thread titexe
Hello, there's a possibility to schedule a move of messages from one queue to another, every 1 hour? If yes, how;)? Thank you for giving me an example:) Thank you in advance titexe -- View this message in context: http://old.nabble.com/Camel-%3A-schedule-the-move-of-messages-tp26443376p26443

Re: Camel : slow processing of messages

2009-11-20 Thread titexe
the problem, when i look of the attributes of this queue, i found ConsumerCount 0 and the route of camel is started. What can you explain this ? Thank you in advance, titexe dulanov wrote: > > Do you just write to db or read/write? May be the problem would be solved > by > creating indexes f

Re: How to change Camel endpoint at run time?

2009-11-20 Thread Anto Paul
Hi, Thanks Ibsen, it worked. Anto On Fri, Nov 20, 2009 at 11:25 AM, Claus Ibsen wrote: > On Fri, Nov 20, 2009 at 5:18 AM, Anto Paul > wrote: > > Hi, > >As an example take an FTP poller that has to connect to a server when > a > > particular event is triggered. We have to provide a UI

Re: Camel 2.1 plans ?

2009-11-20 Thread S. Ali Tokmen
Great Thank you S. Ali Tokmen savas-ali.tok...@bull.net Office: +33 4 76 29 76 19 GSM:+33 66 43 00 555 Bull, Architect of an Open World TM http://www.bull.com Charles Moulliard a écrit : http://davsclaus.blogspot.com/2009/11/apache-camel-21-update-on-releaseplan.html Charles Moulliard

Re: Camel 2.1 plans ?

2009-11-20 Thread Charles Moulliard
http://davsclaus.blogspot.com/2009/11/apache-camel-21-update-on-releaseplan.html Charles Moulliard Senior Enterprise Architect Apache Camel Committer * blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard Linkedlin : http://www.linkedin.com/in/

Re: Camel 2.1 plans ?

2009-11-20 Thread Claus Ibsen
On Fri, Nov 20, 2009 at 1:44 PM, S. Ali Tokmen wrote: > Hello > > Are there any plans for Camel 2.1 milestone and/or candidate releases? > See more here http://davsclaus.blogspot.com/2009/11/apache-camel-21-update-on-releaseplan.html > Cheers > > -- > > S. Ali Tokmen > savas-ali.tok...@bull.net

Camel 2.1 plans ?

2009-11-20 Thread S. Ali Tokmen
Hello Are there any plans for Camel 2.1 milestone and/or candidate releases? Cheers -- S. Ali Tokmen savas-ali.tok...@bull.net Office: +33 4 76 29 76 19 GSM:+33 66 43 00 555 Bull, Architect of an Open World TM http://www.bull.com

Re: Intended rollback on the exchange - error on transacted routes

2009-11-20 Thread Claus Ibsen
On Fri, Nov 20, 2009 at 12:34 PM, trivedi kumar b wrote: > > If I add markRollbackOnly() to this router instead of rollback(), I am > getting another error (Transaction exception): > > "Transaction rolled back because it has been marked as rollback-only" Camel does not set this message so its som

Re: Intended rollback on the exchange - error on transacted routes

2009-11-20 Thread trivedi kumar b
If I add markRollbackOnly() to this router instead of rollback(), I am getting another error (Transaction exception): "Transaction rolled back because it has been marked as rollback-only" Any idea why this error is coming? Thanks, Trivedi Claus Ibsen-2 wrote: > > On Thu, Nov 19, 2009 at 8:4

Re: Unexpected behaviour of TransactionErrorHandler?

2009-11-20 Thread Claus Ibsen
On Fri, Nov 20, 2009 at 11:13 AM, Martin Krasser wrote: > Using > > setProperty(Exchange.ROLLBACK_ONLY, Boolean.TRUE) > > isn't enough for 2.0.0. This causes the TransactionErrorHandler in this > version to throw an exception too. In 2-1.SNAPSHOT everything works as > expected because of additiona

Re: Reg: Direct Endpoint

2009-11-20 Thread Claus Ibsen
On Fri, Nov 20, 2009 at 11:01 AM, hanuman wrote: > > Hi, >  I tired to run the following camel configuration: > > > > > > > > > This option allowMultipleConsumers is @deprecated and removed in Camel 2.1 So use direct without that option. > My "OutQueue" is receiving two messages. > If i

Re: Unexpected behaviour of TransactionErrorHandler?

2009-11-20 Thread Martin Krasser
Using setProperty(Exchange.ROLLBACK_ONLY, Boolean.TRUE) isn't enough for 2.0.0. This causes the TransactionErrorHandler in this version to throw an exception too. In 2-1.SNAPSHOT everything works as expected because of additional logic added to the TransactionErrorHandler. For getting it run

Reg: Direct Endpoint

2009-11-20 Thread hanuman
Hi, I tired to run the following camel configuration: My "OutQueue" is receiving two messages. If i set "allowMultipleConsumers=false" to Direct endpoint.Now i got only one message to OutQueue. Can you please tell me, whats the difference between them. Thanks in advance, Satyam -- View

Re: Unexpected behaviour of TransactionErrorHandler?

2009-11-20 Thread Martin Krasser
... not part of the Camel 2.0.0 Javadocs ... Claus Ibsen schrieb: On Fri, Nov 20, 2009 at 10:36 AM, Claus Ibsen wrote: On Fri, Nov 20, 2009 at 10:35 AM, Martin Krasser wrote: I know that when I don't declare the local exception handler a rollback will occur. But how can I handle the

Re: Unexpected behaviour of TransactionErrorHandler?

2009-11-20 Thread Claus Ibsen
On Fri, Nov 20, 2009 at 10:38 AM, Claus Ibsen wrote: > On Fri, Nov 20, 2009 at 10:36 AM, Claus Ibsen wrote: >> On Fri, Nov 20, 2009 at 10:35 AM, Martin Krasser >> wrote: >>> I know that when I don't declare the local exception handler a rollback will >>> occur. But how can I handle the exceptio

Re: Unexpected behaviour of TransactionErrorHandler?

2009-11-20 Thread Claus Ibsen
On Fri, Nov 20, 2009 at 10:36 AM, Claus Ibsen wrote: > On Fri, Nov 20, 2009 at 10:35 AM, Martin Krasser > wrote: >> I know that when I don't declare the local exception handler a rollback will >> occur. But how can I handle the exception for returning a custom response to >> the sender AND rollb

Re: Unexpected behaviour of TransactionErrorHandler?

2009-11-20 Thread Claus Ibsen
On Fri, Nov 20, 2009 at 10:35 AM, Martin Krasser wrote: > I know that when I don't declare the local exception handler a rollback will > occur. But how can I handle the exception for returning a custom response to > the sender AND rollback the transaction? Maybe I'm missing something obvious > (?)

Re: Unexpected behaviour of TransactionErrorHandler?

2009-11-20 Thread Martin Krasser
I know that when I don't declare the local exception handler a rollback will occur. But how can I handle the exception for returning a custom response to the sender AND rollback the transaction? Maybe I'm missing something obvious (?). Claus Ibsen schrieb: On Fri, Nov 20, 2009 at 10:20 AM, Ma

Re: Unexpected behaviour of TransactionErrorHandler?

2009-11-20 Thread Claus Ibsen
On Fri, Nov 20, 2009 at 10:20 AM, Martin Krasser wrote: > I'm using the TransactionErrorHandler of Camel 2.0.0 and observe an > unexpected transaction-outcome for handled errors. Using the > TransactionErrorHandler with the route > > onException(Exception.class).handled(true).process(...); > from(

Unexpected behaviour of TransactionErrorHandler?

2009-11-20 Thread Martin Krasser
I'm using the TransactionErrorHandler of Camel 2.0.0 and observe an unexpected transaction-outcome for handled errors. Using the TransactionErrorHandler with the route onException(Exception.class).handled(true).process(...); from("direct:test").transacted().processRef('myFailureProcessor'); do