camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: camel jaxb component
Date Sat, 14 Sep 2013 11:05:48 GMT
Study http://camel.apache.org/jaxb.html.

Best,
Christian
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Wed, Sep 11, 2013 at 7:37 PM, contactreji <contactreji@gmail.com> wrote:

> Hi
>
> I am trying to marsha some data which is receivd at CXF Endpoint as follows
>
>
> <camelContext xmlns="http://camel.apache.org/schema/spring">
>
>                 <dataFormats>
>                         <jaxb id="myJaxb" prettyPrint="true"
> contextPath="outotec.pi.mes.id59.powerconsumption.DTPowerConsumption.class"
> />
>                 </dataFormats>
>
>                 <redeliveryPolicyProfile redeliveryDelay="25"
>                         maximumRedeliveries="3" id="sapRedelivery" />
>                 <route id="route_1">
>
>                         <from uri="cxf:bean:PowerConsumptionEndpoint" />
>                         <marshal ref="myJaxb"/>
>
>                         <to uri="activemq:REJI_INboundQ" />
>
>                 </route>
>
>
>
>
>         </camelContext>
>
>
>
> It gives error  as follows
>
> Caused by: javax.xml.bind.JAXBException:
> "outotec.pi.mes.id59.powerconsumption.DTPowerConsumption.class" doesnt
> contain ObjectFactory.class or jaxb.index
>         at
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:197)
>
>
> Can you help me with this jaxb component... I want to marshall the data
> before storing into the Queue..
>
> Reji
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/camel-jaxb-component-tp5739181.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message