camel-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CAMEL-8433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14346344#comment-14346344
] 

Willem Jiang commented on CAMEL-8433:
-------------------------------------

We just use the xjc to generate schema from the Java file,  I don't know why you need to generate
the  Java frile from the schema?

> 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
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> 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