-
1. Re: How to change JBoss AS 7.1.1 to use Jersey for JAX-RS impl instead of Resteasy Web Service
nickarls Dec 10, 2012 3:00 AM (in response to esteve)Are you interested in working out the possible XmlTransient and file upload issue in RESTEasy or do you want to use Jersey anyway?
-
2. Re: How to change JBoss AS 7.1.1 to use Jersey for JAX-RS impl instead of Resteasy Web Service
esteve Dec 10, 2012 5:45 AM (in response to nickarls)Nicklas,
Yes, I was trying to solve @XmlTranscient and fileupload. Is there another way to solve it?
For example, Jersey Resteasy provider solves XmlTranscient but I haven't found any 'official' documentation describing how to change Resteasy provider in a cleaner way. Do you know how to do that?
Thanks in advance.
Regards,
-
3. Re: How to change JBoss AS 7.1.1 to use Jersey for JAX-RS impl instead of Resteasy Web Service
nickarls Dec 10, 2012 6:37 AM (in response to esteve)If you provide details on what issues you're having with RESTEasy, perhaps someone can assist.
If you want to use Jersey, you will have to bundle and adjust classloading so that the RESTEasy modules are not connected at deploy time (as you can only have one REST provider per application). If you search for "jersey" on the forums I think you will find i few discussions related to this...
-
4. Re: How to change JBoss AS 7.1.1 to use Jersey for JAX-RS impl instead of Resteasy Web Service
esteve Dec 10, 2012 9:36 AM (in response to nickarls)Nicklas,
I will try to search again, but I can't find anywhere why @XmlTranscient annotation is ignored with jackson provider.
Regards,
Esteve
-
5. Re: How to change JBoss AS 7.1.1 to use Jersey for JAX-RS impl instead of Resteasy Web Service
nickarls Dec 10, 2012 2:47 PM (in response to esteve)1 of 1 people found this helpfulDoes @JsonIgnore annotation work?
Any pointers over here?
http://blog.bdoughan.com/2011/06/using-jaxbs-xmlaccessortype-to.html
http://stackoverflow.com/questions/9552554/resteasy-and-jackson-ignoring-jaxb-annotations
http://stackoverflow.com/questions/4738769/use-jackson-json-library-with-jaxb-annotations
http://stackoverflow.com/questions/6001817/jackson-with-jaxb
(and the links from there on)
-
6. Re: How to change JBoss AS 7.1.1 to use Jersey for JAX-RS impl instead of Resteasy Web Service
esteve Dec 11, 2012 6:05 AM (in response to nickarls)Nicklas,
Thanks. I am using only JSON to build a REST API.So, as seen in the links it seams not a very good idea to use JAXB annotations.
If I use JsonIgnore all works fine.
So I will keep on using Json specific annotation for this purpose.
Thanks again for your time.
Regards
Esteve