JndiRegistry registry = super.createRegistry();
// let's create our black box as a Camel context and a set of routes
DefaultCamelContext blackBox = new DefaultCamelContext(registry);
blackBox.setName("blackBox");
blackBox.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
// we received purchase orders, so let's process it in some way then
// send an invoice to our invoice endpoint
from("direct:purchaseOrder").setHeader("received").constant("true").to("direct:invoice");