Search in sources :

Example 1 with BindingComponent

use of org.apache.camel.component.binding.BindingComponent in project camel by apache.

the class JacksonBindingTest method createJndiContext.

@Override
protected Context createJndiContext() throws Exception {
    Context context = super.createJndiContext();
    JacksonXMLDataFormat format = new JacksonXMLDataFormat(TestPojo.class);
    context.bind("jsonmq", new BindingComponent(new DataFormatBinding(format), "file:target/"));
    return context;
}
Also used : Context(javax.naming.Context) DataFormatBinding(org.apache.camel.processor.binding.DataFormatBinding) BindingComponent(org.apache.camel.component.binding.BindingComponent)

Example 2 with BindingComponent

use of org.apache.camel.component.binding.BindingComponent in project camel by apache.

the class JacksonBindingTest method createJndiContext.

@Override
protected Context createJndiContext() throws Exception {
    Context context = super.createJndiContext();
    JacksonDataFormat format = new JacksonDataFormat(TestPojo.class);
    context.bind("jsonmq", new BindingComponent(new DataFormatBinding(format), "file:target/"));
    return context;
}
Also used : Context(javax.naming.Context) DataFormatBinding(org.apache.camel.processor.binding.DataFormatBinding) BindingComponent(org.apache.camel.component.binding.BindingComponent)

Aggregations

Context (javax.naming.Context)2 BindingComponent (org.apache.camel.component.binding.BindingComponent)2 DataFormatBinding (org.apache.camel.processor.binding.DataFormatBinding)2