2017-07-26 11:19 GMT+02:00 olivier_1 <choukri.meda...@gmail.com>:

> Hi
> Thank you  for your reactivity
>
> i have already make it .
>

Not really. This specifies the endpoint types but jackson is still */*:

        @Provider
        @Consumes(MediaType.APPLICATION_JSON)
        @Produces(MediaType.APPLICATION_JSON)
        public class MyjsonProvider extends JacksonJsonProvider {}


>
>         @PUT
>         @Consumes(MediaType.APPLICATION_JSON)
>         @Produces(MediaType.APPLICATION_JSON)
>         public Response putPerson(Person person) throws URISyntaxException{
>                 logger.info(person.toString());
>                 URI     location = new
> URI(propertyConfiguration.getProperties().get("rootUrl")
> .toString()+iPersonService.save(person));
>                 logger.info(location.toString());
>                 return Response.created(location).build();
>
>
>         }
>
> NB: in jboss and tomee 1.7.4 it work, but in tomee 7 it's not working
> Regards,
> Olivier.
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Probleme-with-johnzon-tp4682312p4682321.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>

Reply via email to