Hi,

There is no generic way to determine the size of a message body (and there is 
even no generic definition of what the size of a message body means). If the 
body is a String (which has a length() method), your simple expression below 
might even work, if it is a List (${body.size} might help). In case of a Stream 
you cannot determine the size, if it's a (DOM) Document I don't see a sane way 
to define what size means...

Best regards
Stephan

-----Original Message-----
From: smilevasu6 [mailto:[email protected]] 
Sent: Freitag, 5. Dezember 2014 04:35
To: [email protected]
Subject: Re: AW: Camel - Array

Hi,

Thanks for your response.

.setHeader("size",simple("${body.length}"))

instead of length what is the method to fetch the element.

can you please tell me with example

I want to know the method in camel to fetch the element.

I don't want to put it into list.

${body[0]} ..



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Array-tp5760111p5760174.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to