• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the soluton (Spring+resteasy):

reply
    Bookmark Topic Watch Topic
  • New Topic