This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resteasy and Spring - howto register javax.xml.bind.ValidationEventHandler

 
Maciej Miklas
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've registered custom XML Mappers with javax.xml.bind.annotation.adapters.XmlAdapter. Such mapper can throw exception - the problem is, that resteasy ignores such exception. I would like to break REST call and return error to the client.

To do that I need to register javax.xml.bind.ValidationEventHandler on Marschaller/Unmarschaller.

Does anyone know how to do that with Jboss resteasy? I am using resteasy servlet to process requests, this servlet creates Marschaller/Unmarschaller somwhere inside......

Thanks,
Maciek
 
Maciej Miklas
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the soluton (Spring+resteasy):

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic