Hi,

I am using the cxf-bundle in servicemix.

The cxf-bundle provides the package (and export)
org.apache.cxf.ws.addressing (in CXF it is from cxf-api).

For my use case, i have a problem with this package.

It provides some generated classes (using xjc) which are not serializable.

I used the cxf-codegen-plugin to generate the same classes (with the
serializable option).

And deploy a web service using CAMEL/CXF in pojo mode.

When i receive my message from web service the package
org.apache.cxf.ws.addressing (from cxf) is used. So when i try to serialize
the object it fails due to serialization issue.

I have tried to import in my bundle only my version of this package but it
seems not working.


In order to be clear :

Bundle cxf-bundle
     export org.apache.cxf.ws.addressing;version=X.Y.Z

Bundle my-ws-bundle
     export org.apache.cxf.ws.addressing;version=A.B.C

Bundle my-cxf-camel-bundle
    import org.apache.cxf.ws.addressing;version=A.B.C
    import org.apache.cxf.*;version=XYZ (I import other classes of CXF
using XYZ version)

My code in my-cxf-camel-bundle (using a CamelCxfEndpoint in pojo mode)
received an object which is in package org.apache.cxf.ws.addressing but
with the version X.Y.Z
[X.Y.Z version does not implement serializable whereas A.B.C version does].

What am i missing when using OSGi mechanism ?

Thanks for answers
Regards

Hervé

Reply via email to