Package org.apache.servicemix.nmr.core

Examples of org.apache.servicemix.nmr.core.ServiceMix


    @Override
    protected CamelContext createCamelContext() throws Exception {
      camelContext = SpringCamelContext.springCamelContext(applicationContext);
     
      smxComponent = new ServiceMixComponent();
      nmr = new ServiceMix();
      ((ServiceMix)nmr).init();
      smxComponent.setNmr(nmr);
      camelContext.addComponent("smx", smxComponent);
        return camelContext;
    }
View Full Code Here


    }
   
    protected CamelContext createCamelContext() throws Exception {
      camelContext = SpringCamelContext.springCamelContext(applicationContext);
      smxComponent = new ServiceMixComponent();
      nmr = new ServiceMix();
      ((ServiceMix)nmr).init();
      smxComponent.setNmr(nmr);
      camelContext.addComponent("smx", smxComponent);
        return camelContext;
    }
View Full Code Here

    }
   
    protected CamelContext createCamelContext() throws Exception {
      camelContext = SpringCamelContext.springCamelContext(applicationContext);
      smxComponent = new ServiceMixComponent();
      nmr = new ServiceMix();
      ((ServiceMix)nmr).init();
      smxComponent.setNmr(nmr);
      camelContext.addComponent("smx", smxComponent);
        return camelContext;
    }
View Full Code Here

   
    protected CamelContext createCamelContext() throws Exception {
      camelContext = SpringCamelContext.springCamelContext(applicationContext);
     
      smxComponent = new ServiceMixComponent();
      nmr = new ServiceMix();
      ((ServiceMix)nmr).init();
      smxComponent.setNmr(nmr);
      camelContext.addComponent("smx", smxComponent);
        return camelContext;
    }
View Full Code Here

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

        assertNotNull(inMessage);
    }
   
    @Test
    public void testNMRDestinationRunAsSubjct() throws Exception {
      ServiceMix smx = new ServiceMix();
        smx.init();
        nmr = smx;
        EndpointInfo ei = new EndpointInfo();
        ei.setAddress("nmr:dumy?RUN_AS_SUBJECT=true");
        ei.setName(new QName("http://test", "endpoint"));
        ServiceInfo si = new ServiceInfo();
View Full Code Here

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

        assertEquals("We should get a right protocol headers", "world", protocolHeaders.get("hello").get(0));
    }
   
    @Test
    public void testNMRDestinationRunAsSubjct() throws Exception {
      ServiceMix smx = new ServiceMix();
        smx.init();
        nmr = smx;
        EndpointInfo ei = new EndpointInfo();
        ei.setAddress("nmr:dumy?RUN_AS_SUBJECT=true");
        ei.setName(new QName("http://test", "endpoint"));
        ServiceInfo si = new ServiceInfo();
View Full Code Here

            return getContext().getDeliveryChannel();
        }
    }

    public void setUp() throws Exception {
        ServiceMix smx = new ServiceMix();
        smx.init();
        ComponentRegistryImpl reg = new ComponentRegistryImpl();
        reg.setNmr(smx);

        listener = new ExchangeCompletedListener();
        smx.getListenerRegistry().register(listener, new HashMap<String, Object>());
        // Create components
        provider = new TestComponent(new QName("provider"), "endpoint");
        consumer = new TestComponent(new QName("consumer"), "endpoint");
        // Register components
        reg.register(new SimpleComponentWrapper(provider), ServiceHelper.createMap(ComponentRegistry.NAME, "provider"));
View Full Code Here

    private ComponentRegistry componentRegistry;
    private SimpleComponentWrapper componentWrapper;

    @Override
    protected void setUp() throws Exception {
        ServiceMix smx = new ServiceMix();
        smx.init();
        this.nmr = smx;
        ComponentRegistryImpl reg = new ComponentRegistryImpl();
        reg.setNmr(nmr);
        reg.setDocumentRepository(new DocumentRepositoryImpl());
        this.componentRegistry = reg;
View Full Code Here

TOP

Related Classes of org.apache.servicemix.nmr.core.ServiceMix

Copyright © 2018 www.massapicom. 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.