Hi Dont do this.
Setup the dataformat in both bundles. Its not intended for having a Camel data format shared across different CamelContext. On Fri, Apr 12, 2019 at 11:18 AM Blume, Karsten <karsten.bl...@hermes-ottoint.com> wrote: > > Hello everybody, > i have a problem with jaxb dataformat & usage over several bundles > -env: blueprint bundles, camel 2.16.3, servicemix 6.1.2 > > I would like to use a jaxb dataformat in a bundle D, > the dataformat is referencing the context property (generated from some xsd) > from another bundle C, > also i would like to have the validation by the schema property of dataformat. > > Blueprint test runs fine, during bundle startup in the server i get an error > "cannot load XSD via classpath". > Without schema property set, I can use the dataformat. But i would like to > have the validation. I don't want the XSDs spread over all my bundles where i > use this jaxb dataformat. What might be the solution? > i cannot define the dataformat in C because > org.apache.camel.model.dataformat.JaxbDataFormat as bean has no interface for > service referencing. > i don't know how to reference the XSD from D to C. > Thanks in advance Karsten > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2