camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Northrup (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-8433) Camel XSD lacks Root Elements, does not generate round-trip Marshal/Unmarshal
Date Wed, 04 Mar 2015 02:38:05 GMT
Jim Northrup created CAMEL-8433:
-----------------------------------

             Summary: Camel XSD lacks Root Elements, does not generate round-trip Marshal/Unmarshal
                 Key: CAMEL-8433
                 URL: https://issues.apache.org/jira/browse/CAMEL-8433
             Project: Camel
          Issue Type: Bug
          Components: camel-spring-javaconfig
    Affects Versions: 2.14.1
            Reporter: Jim Northrup


using xjc on the provided XSD file enclosing CamelContextFactory within a spring Beans XSD
proxy creates an element "<CamelContextFactory>" instead of element "<camelContext>".

additionally the Schema lacks root level element declarations and so the user of the generated
beans is forced to hand-edit the generated output to insert @XmlRootElement("camelContext")
in the camelContextFactoryBean generated bean.

the solution is shown in github patch https://github.com/jnorthrup/xcaml/commit/531f042d8f8d5835a3030d6d8c1e6c3608c7b585?w=1
along with other xjc descriptor amenities to successfully generate proxies that have elements
sharing symbol names with attributes 





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message