You need to define a dataformat step in your route: https://camel.apache.org/data-format.html for bindy: http://camel.apache.org/binding.html alternatively you can bind the dataformat to the endpoint: http://camel.apache.org/binding.html
2015-07-14 17:53 GMT+02:00 vivekrao001 <[email protected]>: > @Consume(uri = "jms:queue:TestQueueOne?concurrentConsumers=10") > public String onMyMessage1(Order order) { > //// Some logic > } > > -- Bean Definition is as follows > @FixedLengthRecord(length = 4) > public class Order implements Serializable { > > @DataField(pos = 1, length = 2) > private int orderNr; > > @DataField(pos = 2, length = 2) > private String clientNr; > > public int getOrderNr() { > return orderNr; > } > > public void setOrderNr(int orderNr) { > this.orderNr = orderNr; > } > > public String getClientNr() { > return clientNr; > } > > public void setClientNr(String clientNr) { > this.clientNr = clientNr; > } > } > > --- its giving the following error : > *No type converter available to convert from type*: java.lang.String to the > required type: com.myapp.component.Order with value 1122. > > Could somebody help me, if I'm missing any configuration? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-Bindy-bean-as-Parameter-in-Spring-Jms-Component-using-Consume-tp5769301.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen
