You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by chaituu <ya...@gmail.com> on 2015/04/11 03:50:19 UTC

print the list of map objects in Spring DSL log

how to print the list of map objects in Spring DSL log.

in java i am able to print the value .

 
LOGGER.info("Employee:"+((Employee)csvList.get(0).get(Employee.class.getName())).getEmployeeId());//
in Java the value is coming.
	
	 <log message="....${body.get(0).get(xx.xxx.xxx.Employee)}"/>//Spring DSL
object is coming as null.



--
View this message in context: http://camel.465427.n5.nabble.com/print-the-list-of-map-objects-in-Spring-DSL-log-tp5765615.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: print the list of map objects in Spring DSL log

Posted by chaituu <ya...@gmail.com>.
thanks claus. its working..



--
View this message in context: http://camel.465427.n5.nabble.com/print-the-list-of-map-objects-in-Spring-DSL-log-tp5765615p5765633.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: print the list of map objects in Spring DSL log

Posted by Claus Ibsen <cl...@gmail.com>.
Try using ' ' around the argument to pass in the string value


  <log message="....${body.get(0).get(`xx.xxx.xxx.Employee`)}"/>/

On Sat, Apr 11, 2015 at 3:50 AM, chaituu <ya...@gmail.com> wrote:
> how to print the list of map objects in Spring DSL log.
>
> in java i am able to print the value .
>
>
> LOGGER.info("Employee:"+((Employee)csvList.get(0).get(Employee.class.getName())).getEmployeeId());//
> in Java the value is coming.
>
>          <log message="....${body.get(0).get(xx.xxx.xxx.Employee)}"/>//Spring DSL
> object is coming as null.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/print-the-list-of-map-objects-in-Spring-DSL-log-tp5765615.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/