camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bocamel <johnz...@gmail.com>
Subject How to set a message header to an object in spring?
Date Tue, 18 Feb 2014 04:26:50 GMT
I am trying to pass a DAO object to a processor through message header.  But
I cannot find out how to do this in Spring DSL.  The following XML does not
work (complaining that no expression found in registry for myDao):

<bean id="myDao" class="...." />

...

<setHeader headerName="dao"><ref>myDao</ref></setHeader>

Any help will be greatly appreciated.

Thanks!



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-set-a-message-header-to-an-object-in-spring-tp5747451.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message