On Tue, Feb 18, 2014 at 5:26 AM, bocamel <[email protected]> wrote: > 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> >
Use the simple language, it has a ref function to refer to a bean http://camel.apache.org/simple.html <simple>ref:myDao</simple> > 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. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io
