users@jersey.java.net

Replacing XMLJAXBElementProvider

From: Tim McCune <tim_at_mccune.name>
Date: Mon, 21 Jul 2008 14:55:53 -0700

As a follow-up to my "how do I specify xml namespace prefixes" question, I'm
trying to provide my own XMLJAXBElementProvider that lets me set properties
on the Marshaller. I need to replace
com.sun.jersey.impl.provider.entity.XMLJAXBElementProvider with this
implementation. So far, the only way I've found to do this it to remove
META-INF/services/javax.ws.rs.ext.MessageBodyWriter from the jersey jar, so
that jersey will find my javax.ws.rs.ext.MessageBodyWriter file instead. Is
this the only way to do this? Seems like it should be possible to do
something like this without having to build a custom jar.

Thanks.

--Tim