@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.

Reply via email to