camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From qwertywx <>
Subject Camel Rest DSL is not recognizing JsonProperty access
Date Fri, 10 Feb 2017 13:23:29 GMT
I am using Camel Rest DSL to build my rest service but it seems that , it
does not recognize JsonProperty annotation. 

I have a propery like: 

class Test { 

    private int id; 

    @JsonProperty(access = Access.READ_ONLY) 
    private String text; 
and the rest definition is: 

<rests xmlns="">
    <rest consumes="application/json" produces="application/json"
        <post bindingMode="json" type="Test" uri="/path">
When I call it with : 

Text field is also getting initialized. 

What am I missing? 

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message