Search in sources :

Example 1 with SimpleDataSet

use of org.apache.camel.component.dataset.SimpleDataSet in project camel by apache.

the class DataFormatDataSetTest method createJndiContext.

@Override
protected Context createJndiContext() throws Exception {
    PurchaseOrder bean = new PurchaseOrder();
    bean.setName("Beer");
    bean.setAmount(23);
    bean.setPrice(2.5);
    SimpleDataSet ds = new SimpleDataSet();
    ds.setDefaultBody(bean);
    ds.setSize(200);
    Context context = super.createJndiContext();
    context.bind("beer", ds);
    return context;
}
Also used : Context(javax.naming.Context) SimpleDataSet(org.apache.camel.component.dataset.SimpleDataSet)

Aggregations

Context (javax.naming.Context)1 SimpleDataSet (org.apache.camel.component.dataset.SimpleDataSet)1