}
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);
smxComponent = new ServiceMixComponent();
nmr = new ServiceMix();
((ServiceMix)nmr).init();
smxComponent.setNmr(nmr);
camelContext.addComponent("smx", smxComponent);