Examples of addRoutes()


Examples of org.apache.camel.impl.DefaultCamelContext.addRoutes()

        ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616");

        // Note we can explicitly name the component
        context.addComponent("jms", JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));

        context.addRoutes(new LoanBroker());
        // Start the loan broker
        context.start();
        System.out.println("Server is ready");

        Thread.sleep(5 * 60 * 1000);
 
View Full Code Here

Examples of org.apache.camel.spring.SpringCamelContext.addRoutes()

    public CamelContext camelContext() throws Exception {
        SpringCamelContext camelContext = new SpringCamelContext();       
        setupCamelContext(camelContext);
        List<RouteBuilder> routes = routes();
        for (RoutesBuilder route : routes) {
            camelContext.addRoutes(route);
        }       
        return camelContext;
    }
   
    // maybe register the camel component, language here
View Full Code Here

Examples of org.fusesource.ide.camel.model.RouteContainer.addRoutes()

      Element e = (Element)model.getNode();
      Attribute a = e.getAttribute("id");
      if (a != null) id = a.getValue();
    }
    answer.setId(id);
    answer.addRoutes(routes);
    answer.setBeans(model.beanMap());
    answer.setCamelContextEndpointUris(model.endpointUriSet());
    answer.setModel(model);
   
    /*
 
View Full Code Here

Examples of org.zoolu.sip.message.Message.addRoutes()

      String remote_tag=dialog.getRemoteTag();
      //String branch=SipStack.pickBranch();
      Message req=createRequest(method,request_uri,to,from,contact,proto,via_addr,host_port,rport,call_id,cseq,local_tag,remote_tag,null,body);
      Vector route=dialog.getRoute();
      if (route!=null && route.size()>0)
         req.addRoutes(new MultipleHeader(SipHeaders.Route,route));
      req.rfc2543RouteAdapt();
      return req;
   }

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.