Re: Split using tokenize on header

2009-05-11 Thread Claus Ibsen
gt;>>>> >>>>>>>>>>> onthis message I tried - >>>>>>>>>>> >>>>>>>>>>> from("jms:queue:new.test1").splitter(header("To").tokenize(",")).to("jms:queue:new.test2"); &

Re: Split using tokenize on header

2009-05-11 Thread rohitbrai
ue:new.test2"); >>>>>>>>>> >>>>>>>>>> and I was expecting 3 entries on test2 queue >>>>>>>>>> Header >>>>>>>>>>    "To" - "a...@sdf.com" >>>>&

Re: Split using tokenize on header

2009-05-11 Thread Claus Ibsen
> Header >>>>>>>>>    "To" - "x...@dsfsdf.com" >>>>>>>>> Body >>>>>>>>>    Hello >>>>>>>>> >>>>>>>>> Header >>>>>>>>>

Re: Split using tokenize on header

2009-05-10 Thread Willem Jiang
>>>> Body >>>>>>>>Hello >>>>>>>> >>>>>>>> >>>>>>>> But instead I got 3 messages on test2 queue like >>>>>>>> Header >>>>>>>>"To

Re: Split using tokenize on header

2009-05-10 Thread Claus Ibsen
; - "a...@sdf.com,x...@dsfsdf.com,s...@serr.com" >>>>>>> Body >>>>>>>    ...@sdf.com >>>>>>> >>>>>>> Header >>>>>>>    "To" - "a...@sdf.com,x...@dsfsdf.com,s...@se

Re: Split using tokenize on header

2009-05-10 Thread Willem Jiang
.@dsfsdf.com,s...@serr.com" >>>>>> Body >>>>>>x...@dsfsdf.com >>>>>> >>>>>> Header >>>>>>"To" - "a...@sdf.com,x...@dsfsdf.com,s...@serr.com" >>>>>> Body >>>>&

Re: Split using tokenize on header

2009-05-10 Thread Claus Ibsen
; >>>>> So I guess, I am doing it and even understanding it wrong. >>>>> >>>>> Can anyone here guide me how to handle this situation. >>>> Hi >>>> >>>> Welcome on the Camel ride. >>>> >>>> The

Re: Split using tokenize on header

2009-05-10 Thread Willem Jiang
Hi, I just created JIAR[1] and did a quick fix for this issue both Camel 2.0 and Camel 1.x branch. Please check out the latest SNPASHOT[2] or the coming up Camel 1.6.1 for it. [1]https://issues.apache.org/activemq/browse/CAMEL-1597 [2]https://repository.apache.org/content/repositories/snapshots/or

Re: Split using tokenize on header

2009-05-10 Thread Willem Jiang
ODY payload. >>> The header is just meta data about the message. >>> >>> So the splitter operates on splitting the BODY and not the headers, >>> hence why you get the email address in the body. >>> >>> So by default there EIP patterns dont really

Re: Split using tokenize on header

2009-05-08 Thread Claus Ibsen
headers, >> hence why you get the email address in the body. >> >> So by default there EIP patterns dont really support your use case out >> of the box, unless you do some manual fixup in Java code. >> >> You could use a POJO or the like where you create new message

Re: Split using tokenize on header

2009-05-08 Thread rohitbrai
d > along. > > private ProducerTemplate producer > > public void sendSplittedMessages(String body, @Headers Map headers) { > // loop the headers for each email adr > for (...) { > String email = ... > producer.sendBodyAndHeader("jms:queue:new:test

Re: Split using tokenize on header

2009-05-08 Thread Claus Ibsen
ucerTemplate producer public void sendSplittedMessages(String body, @Headers Map headers) { // loop the headers for each email adr for (...) { String email = ... producer.sendBodyAndHeader("jms:queue:new:test02", body, "To", email); } And then have a route that

Split using tokenize on header

2009-05-08 Thread rohitbrai
ot; Body s...@serr.com So I guess, I am doing it and even understanding it wrong. Can anyone here guide me how to handle this situation. Thanks and Regards, -- View this message in context: http://www.nabble.com/Split-using-tokenize-on-header-tp23445496p23445496.html Sent from the Camel - Users mailing list archive at Nabble.com.