Examples of DefaultCamelContext


Examples of org.apache.camel.impl.DefaultCamelContext

   */
  @Override
  @Before
  public void setUp() throws Exception {
    super.setUp();
    this.camelContext = new DefaultCamelContext();
    this.camelContext.addRoutes(new RouteBuilder() {
      @Override
      public void configure() throws Exception {
        from("jetty:http://localhost:1148/?matchOnUriPrefix=true").process(
            new Processor() {
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

* Starter for the Jms2RestAdpter to run it easily from Eclipse
*/
public class Starter {

    public void run() throws Exception {
        CamelContext context = new DefaultCamelContext();
        context.addComponent("properties", new PropertiesComponent("sampleconfig.properties"));
        context.addRoutes(new OrderRouteBuilder());
        context.start();
        System.in.read();
        context.stop();
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

*/
public class Jpa2JmsStarter {

   
    public void run() throws Exception {
        CamelContext context = new DefaultCamelContext();
        addJmsComponent(context);
        context.setTracing(true);
        context.addRoutes(new Jpa2JmsRoute());
        context.start();
        System.in.read();
        context.stop();
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

*/
public class Jms2RestStarter {

   
    public void run() throws Exception {
        CamelContext context = new DefaultCamelContext();
        JmsConfiguration jmsConfig = new JmsConfiguration(new ActiveMQConnectionFactory("tcp://localhost:61616"));
        context.addComponent("jms", new JmsComponent(jmsConfig ));
        context.setTracing(true);
        context.addRoutes(new Jms2RestRoute());
        context.start();
        System.in.read();
        context.stop();
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

*/
public class VotingStarter {

   
    public void run() throws Exception {
        CamelContext context = new DefaultCamelContext();
        TwitterComponent twitterComponent = context.getComponent("twitter", TwitterComponent.class);
        twitterComponent.setConsumerKey("");
        twitterComponent.setConsumerSecret("");
        twitterComponent.setAccessToken("");
        twitterComponent.setAccessTokenSecret("");
        context.setTracing(true);
        context.addRoutes(new VotingRoutes());
        context.start();
        System.in.read();
        context.stop();
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

        assertTrue(json.contains("\"block\": { \"type\": \"boolean\""));
    }

    @Test
    public void testComponentDocumentation() throws Exception {
        CamelContext context = new DefaultCamelContext();
        String html = context.getComponentDocumentation("direct-vm");
        assertNotNull("Should have found some auto-generated HTML", html);
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

        assertTrue(json.contains("\"timeout\": { \"type\": \"integer\""));
    }

    @Test
    public void testComponentDocumentation() throws Exception {
        CamelContext context = new DefaultCamelContext();
        String html = context.getComponentDocumentation("test");
        assertNotNull("Should have found some auto-generated HTML", html);
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

        assertTrue(json.contains("\"synchronous\": { \"type\": \"boolean\""));
    }

    @Test
    public void testComponentDocumentation() throws Exception {
        CamelContext context = new DefaultCamelContext();
        String html = context.getComponentDocumentation("xslt");
        assertNotNull("Should have found some auto-generated HTML", html);
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

        assertTrue(json.contains("\"usePassedInEntityManager\": { \"type\": \"boolean\""));
    }

    @Test
    public void testComponentDocumentation() throws Exception {
        CamelContext context = new DefaultCamelContext();
        String html = context.getComponentDocumentation("jpa");
        assertNotNull("Should have found some auto-generated HTML", html);
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

        assertTrue(json.contains("\"debugMode\": { \"type\": \"boolean\""));
    }

    @Test
    public void testComponentDocumentation() throws Exception {
        CamelContext context = new DefaultCamelContext();
        String html = context.getComponentDocumentation("mail");
        assertNotNull("Should have found some auto-generated HTML", html);
    }
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.