From Thursday, July, 9, 3:00 PM Pacific,
our Community site will be in
read-only mode
through Sunday, July 12th.
Thank you for your patience.

marshal pojos with dsl

Highlighted
One Star

marshal pojos with dsl

Hello,
i would like to marshal a jaxb-annotated pojo to xml with cJavaDslProcessor but I'm not sure how to do this.
Does anybody have some suggestions?
Highlighted
Employee

Re: marshal pojos with dsl

Try .marshal().jaxb(true)
Highlighted
One Star

Re: marshal pojos with dsl

Thanks for your quick reply. This ends up in this error message
class org.apache.camel.component.cxf.CxfPayload nor any of its super class is known to this context.
Highlighted
One Star

Re: marshal pojos with dsl

Hi,
You need to use cConfig and add camel-jaxb-alldep.
Highlighted
One Star

Re: marshal pojos with dsl

Thanks for your reply. This dependency is already included. The failure above may be a bit confusing - sorry for that. It is not the cxf payload. This happens to any class I try to marshal from like com.mypackage.car or com.mypackage.bike. But the packages are added as dependency within cConfig. I thought with adding this dependency, those classes are known by the context?
Is there something else I missed?

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read