Hi You can use a POJO to do the unmarshal on the field. Then you are in 100% control what happens and can then set the result of the unmarshal as a header on the message.
With a POJO you can use IoC to inject the unmarshaller. On Wed, Jun 10, 2009 at 5:53 PM, Charles Moulliard<[email protected]> wrote: > Hi, > > Can I in a camel spring DSL route do something like that. > > A request class has been created and is put in an ActiveMq queue. This class > contains in a field the content to be unmarshaled. > The route that I would like to use could be something like this : > > <from uri="queue:a"> // where the Request object has been placed > <convertBodyTo type="com.dummy.Request" /> transform the content > serialized into our Request object > <extract property="messageContent"/> --> process who will access the > property field of the content that I would like to unmarshal > <unmarshal ref="CamelBindydataFormat"> > <to uri=""/> > > Remark : the request object must stay in the body of the exchange message > > Regards, > > Charles Moulliard > Senior Enterprise Architect > Apache Camel Committer > > ***************************** > blog : http://cmoulliard.blogspot.com > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
