Configuration alternatives to the @XmlRootElement annotation

Solution Unverified - Updated -

Issue

I am using the CXF JSONProvider to serialize my Java Classes to JSON.

I would like to configure the XmlRoot in Spring over annotating the class. Is there a way to do this?

Environment

JBoss Fuse 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.