Thanks! The suggestion worked beautifully.
From: Claus Ibsen-2 [via Camel] [mailto:ml-node+s465427n5747460...@n5.nabble.com] Sent: Tuesday, February 18, 2014 1:46 AM To: bocamel Subject: Re: How to set a message header to an object in spring? On Tue, Feb 18, 2014 at 5:26 AM, bocamel <[hidden email]> 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-i n-spring-tp5747451.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [hidden email] 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 _____ If you reply to this email, your message will be added to the discussion below: http://camel.465427.n5.nabble.com/How-to-set-a-message-header-to-an-object-i n-spring-tp5747451p5747460.html To unsubscribe from How to set a message header to an object in spring?, click here <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscrib e_by_code&node=5747451&code=am9obnp5aW5AZ21haWwuY29tfDU3NDc0NTF8Mjk3Mjc3MTQ4 > . <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_view er&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNa mespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.No deNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_ema ils%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> NAML -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-a-message-header-to-an-object-in-spring-tp5747451p5747488.html Sent from the Camel - Users mailing list archive at Nabble.com.