Examples of CamelTransportFactory


Examples of org.apache.camel.component.cxf.transport.CamelTransportFactory

    }
   
    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);
View Full Code Here

Examples of org.apache.camel.component.cxf.transport.CamelTransportFactory

    }
   
    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);
View Full Code Here

Examples of org.apache.camel.component.cxf.transport.CamelTransportFactory

   
    @Test
    public void getTheBusInstance() {
        Bus bus = (Bus)ctx.getBean("cxf");
        assertNotNull("The bus should not be null", bus);
        CamelTransportFactory factory = bus.getExtension(CamelTransportFactory.class);
        assertNull("You should find the factory here", factory);
       
        bus = (Bus)ctx.getBean("myBus");
        assertNotNull("The bus should not be null", bus);
        factory = bus.getExtension(CamelTransportFactory.class);
View Full Code Here

Examples of org.apache.camel.component.cxf.transport.CamelTransportFactory

    }
   
    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);
View Full Code Here

Examples of org.apache.camel.component.cxf.transport.CamelTransportFactory

    }
   
    protected CamelContext createCamelContext() throws Exception {
      camelContext = new DefaultCamelContext();
      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);
View Full Code Here

Examples of org.apache.camel.component.cxf.transport.CamelTransportFactory

      camelContext = SpringCamelContext.springCamelContext(applicationContext);
      SpringBusFactory bf = new SpringBusFactory();
        bus = bf
                .createBus("/org/apache/servicemix/camel/ws/policy/addr.xml");
        BusFactory.setDefaultBus(bus);
      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);
View Full Code Here

Examples of org.apache.camel.component.cxf.transport.CamelTransportFactory

    }
   
    protected CamelContext createCamelContext() throws Exception {
      camelContext = SpringCamelContext.springCamelContext(applicationContext);
      Bus bus = new SpringBusFactory().createBus();
      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);
View Full Code Here

Examples of org.apache.camel.component.cxf.transport.CamelTransportFactory

    protected CamelContext createCamelContext() throws Exception {
      camelContext = SpringCamelContext.springCamelContext(applicationContext);
      SpringBusFactory bf = new SpringBusFactory();
        bus = bf.createBus(getConfigFileName());
        BusFactory.setDefaultBus(bus);
      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);
View Full Code Here

Examples of org.apache.camel.component.cxf.transport.CamelTransportFactory

    }
   
    protected CamelContext createCamelContext() throws Exception {
      camelContext = new DefaultCamelContext();
      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);
View Full Code Here

Examples of org.apache.camel.component.cxf.transport.CamelTransportFactory

    protected CamelContext createCamelContext() throws Exception {
      camelContext = SpringCamelContext.springCamelContext(applicationContext);
      SpringBusFactory bf = new SpringBusFactory();
        bus = bf.createBus();
        BusFactory.setDefaultBus(bus);
      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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.