Examples of PojoComponent


Examples of org.apache.camel.component.pojo.PojoComponent

    final CountDownLatch receivedCountDown = new CountDownLatch(1);
   
        // Configure the components
        ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
        container.addComponent("activemq", jmsComponentClientAcknowledge(connectionFactory));
        PojoComponent component = new PojoComponent();
        component.addService("listener", new MessageListener(){
      public void onMessage(Message msg) {
        System.out.println("Received: "+msg);
        receivedCountDown.countDown();       
      }
    });
View Full Code Here

Examples of org.apache.camel.component.pojo.PojoComponent

    final CountDownLatch receivedCountDown = new CountDownLatch(1);
   
        // Configure the components
        ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
        container.addComponent("activemq", jmsComponentClientAcknowledge(connectionFactory));
        PojoComponent component = new PojoComponent();
        component.addService("listener", new MessageListener(){
      public void onMessage(Message msg) {
        System.out.println("Received: "+msg);
        receivedCountDown.countDown();       
      }
    });
View Full Code Here

Examples of org.apache.camel.component.pojo.PojoComponent

      LocateRegistry.createRegistry(1099);     
     
        CamelContext camelContext = new DefaultCamelContext();
       
        // START SNIPPET: register
        PojoComponent component = (PojoComponent)camelContext.getComponent("pojo");
        component.addService("bye", new SayService("Good Bye!"));
        // END SNIPPET: register
       
        // START SNIPPET: route
        // lets add simple route
        camelContext.addRoutes(new RouteBuilder() {
View Full Code Here

Examples of org.apache.camel.component.pojo.PojoComponent

        CamelContext container = new DefaultCamelContext();
       
        final AtomicInteger hitCount = new AtomicInteger();

        PojoComponent component = new PojoComponent();
        component.addService("bar", new Runnable(){
      public void run() {
            log.debug("hit");
        hitCount.incrementAndGet();
      }
        });
View Full Code Here

Examples of org.pentaho.platform.engine.services.solution.PojoComponent

      component = (IComponent) componentTmp;
    } else if ( componentTmp instanceof IAction ) {
      component = new ActionDelegate( componentTmp );
    } else {
      // Try this out...
      PojoComponent pc = new PojoComponent();
      pc.setPojo( componentTmp );
      component = pc;
    }

    component.setInstanceId( currentInstanceId );
    component.setActionName( getActionName() );
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.