Re: Resequencer pattern does not work with the StreamRequencer config

2009-04-21 Thread Claus Ibsen
Hi Is this a duplicate? We got this mail yesterday (I think) as well? And answered it. On Tue, Apr 21, 2009 at 9:05 AM, Nawaz Ahmed wrote: > > > Hi all, > >   I was going through the Resequencer camel component available in the > link: http://camel.apache.org/resequencer.html > > > >   On trying

Resequencer pattern does not work with the StreamRequencer config

2009-04-21 Thread Nawaz Ahmed
Hi all, I was going through the Resequencer camel component available in the link: http://camel.apache.org/resequencer.html On trying the resequencer camel component with the StreamResequencer config with the code below: from("jms:queue:nq1"). convertBodyTo(Strin

Re: Resequencer pattern does not work with the StreamRequencer config

2009-04-20 Thread Martin Krasser
Hi Nawaz, Some comments to your code: - Technically you should be able to get the code working using constant(Long.valueOf("1000")) but this doesn't resequence the message because all will have the same sequence number - How to customize the resequencer using sequence numbers other than long

Re: Resequencer pattern does not work with the StreamRequencer config

2009-04-20 Thread Claus Ibsen
BTW the code you have can work if you change constant("1000") to a long type, something like this: constant(Long.valueOf("1000")) On Mon, Apr 20, 2009 at 8:46 AM, Nawaz Ahmed wrote: > Hi all, > >   I was going through the Resequencer camel component available in the > link: http://camel.apache.

Re: Resequencer pattern does not work with the StreamRequencer config

2009-04-20 Thread Claus Ibsen
Hi Are you using Camel 1.x? In Camel 2.0 it should use the Camel type converter system so it can automatic convert it to a Long type that the resequencer requires. In Camel 1.x you must provide a Long type as it uses the regular java type converter = (Long). And yes we should probably propagate

Resequencer pattern does not work with the StreamRequencer config

2009-04-20 Thread Nawaz Ahmed
Hi all, I was going through the Resequencer camel component available in the link: http://camel.apache.org/resequencer.html On trying the resequencer camel component with the StreamResequencer config with the code below: from("jms:queue:nq1"). convertBodyTo(String.c