Would it be possible to modify the JaxbRepresentation to support passing the a JAXB_CONTEXT_FACTORY property with the name of the factory to create the context. That class must have the following method.
public static JAXBContext createContext(String, ClassLoader) throws JAXBException; This way you can easily plug-in say Jersey's JSONJAXContext to get Object->JSON mapping. Behind the scenes you would need to modify the getContext methods to maintain a separate cache for each context factory. Another alternate method would be to modify the class to have a static method to set the context factory to be used for a specific MIME type. With this approach when you use the MimeType, Object constructor it would use the appropriate JaxbContext factory for that mime type. Paul ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1044973

