Implement a custom ContextResolver
If you do not want RESTEasy to create JAXBContexts, you can plug-in your own by implementing an instance of javax.ws.rs.ext.ContextResolver public interface ContextResolver { T getContext(Class type); } @Provider @Produces("application/xml") public class MyJAXBContextResolver implements ContextResolver { JAXBContext getContext(Class type) { if (type.equals(WhateverClassIsOverridedFor.class)) return JAXBContext.newInstance()...; } } You must provide a @Produces annotation to specify the media type the context is meant for. You must also make sure to implement ContextResolver. This helps the runtime match to the correct context resolver. You must also annotate the ContextResolver class with @Provider. There are multiple ways to make this ContextResolver available. Return it as a class or instance from a javax.ws.rs.core.Application implementation List it as a provider with resteasy.providers Let RESTEasy automatically scan for it within your WAR file. See Configuration Guide Manually add it via ResteasyProviderFactory.getInstance().registerProvider(Class) or registerProviderInstance(Object)