We use Jackson 1.9.x  I think this is a 2.0.x feature.  What you can do 
is exclude the resteasy jackson module, and include the Jackson JAXRS 
jar into your project and manually register this provider.

On 3/5/2013 2:07 PM, Heiko W.Rupp wrote:
> ( see also 
> http://stackoverflow.com/questions/15230192/specific-messagebodywriter-for-field
>  )
>
>
> I am trying to serialize a field of a class in a specific manner. Now 
> MessageBodyWriters work for the class of
> the embedded field when only that class is returned but not when it is 
> embedded in another class.
>
> I was trying to use a @JascksonSerializer like this
>
> @JsonSerialize(using = FooSerializer.class)
> public class Foo {
>
> but it looks like RE is not evaluating the @JacksonSerializer annotation and 
> thus not
> using the custom serializer.
>
> Is there a way to tell RE to use this serializer ?
>
>   Thanks
>          Heiko
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
>
>
>
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to