Finally I found an answer, probably there is a better/cleaner way to do that.
But in any case it's working.
1) I define an unmarshaller for my context
private static Unmarshaller um;
static{
try {
final JAXBContext ctx =
JAXBContext.newInstance(org.apache.cxf.bindings.my.package.ObjectFactory.class.getPackage().getName());
um = ctx.createUnmarshaller();
} catch (final JAXBException e) {
e.printStackTrace();
}
}
2) then I use it to unmarshall "any" part of my custom message:
public void notify(NotificationMessageHolderType message) {
Object unmarshObj=null;
try {
unmarshObj = um.unmarshal(
(ElementNSImpl) o);
} catch (JAXBException e) {
e.printStackTrace();
}
....
}
--
View this message in context:
http://cxf.547215.n5.nabble.com/ws-notification-cxf-v-2-6-1-how-to-notify-custom-message-tp5709934p5709938.html
Sent from the cxf-dev mailing list archive at Nabble.com.