}
protected CamelContext createCamelContext() throws Exception {
camelContext = new DefaultCamelContext(createJndiContext());
Bus bus = BusFactory.getDefaultBus();
CamelTransportFactory camelTransportFactory = (CamelTransportFactory) bus.getExtension(ConduitInitiatorManager.class)
.getConduitInitiator(CamelTransportFactory.TRANSPORT_ID);
camelTransportFactory.setCamelContext(camelContext);
List<String> ids = new ArrayList<String>();
ids.add(CamelTransportFactory.TRANSPORT_ID);
camelTransportFactory.setTransportIds(ids);
smxComponent = new ServiceMixComponent();
nmr = new ServiceMix();
((ServiceMix)nmr).init();
smxComponent.setNmr(nmr);
camelContext.addComponent("smx", smxComponent);