Furthermore, you want exchange.getIn().setHeader("JMSMyProp", "Myval)
Properties are local to the camel context and dont make it to JMS. Nor does anything other than primitives or strings for property values. If you need to send an object, send a JSON encoded version of it. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* On Tue, Sep 24, 2013 at 1:34 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > The JMS spec only allows certain types to be used as jms properties. > Its primitives and String. > You can check the JMS spec or the JMS API: > http://docs.oracle.com/javaee/6/api/javax/jms/Message.html > > And there is also some details on the camel jms page > http://camel.apache.org/jms > > On Mon, Sep 23, 2013 at 10:38 PM, Gabriel <gabriel.wetz...@unitybox.de> > wrote: > > Hi, > > I tried to set an properies array in a jms message like this I've used a > > processor): > > HashMap<String,String> properties = new HashMap<String, > String>(); > > properties.put("test", "test"); > > exchange.getIn().setHeader("properties", properties); > > > > I also tried to set an header like this: > > exchange.getProperties().put("adsf", "adfgsdg"); > > > > I both cases I could see the Headers after adding them. But after > dropping > > the message in a queue the custom header was gone. How can I get a custom > > header throu a queue? Can you help me? > > > > I've tried this using camel 2.10.6 and 2.12. > > Thanks > > Gabriel > > > > > > > > > > -- > > View this message in context: > http://camel.465427.n5.nabble.com/Can-t-process-custom-jms-properies-tp5740082.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cib...@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen >