br.com.argonavis.eipcourse.messaging.camel.router.RouterSpringExample.java Source code

Java tutorial

Introduction

Here is the source code for br.com.argonavis.eipcourse.messaging.camel.router.RouterSpringExample.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.argonavis.eipcourse.messaging.camel.router;

import javax.jms.ConnectionFactory;

import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.camel.CamelContext;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.jms.JmsComponent;
import org.apache.camel.impl.DefaultCamelContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author helderdarocha
 */
public class RouterSpringExample {

    public static void main(String[] args) throws Exception {
        new ClassPathXmlApplicationContext("/META-INF/camel/router-example.xml");
    }
}