DEV Community

loading...

How to start Apache Camel: Message Router with Spring Boot

loizenai profile image loizenai ・2 min read

https://grokonez.com/java-integration/start-apache-camel-message-router-spring-boot

Apache Camel supports most of the Enterprise Integration Pattern, an engine for routing message. The tutorial will guide you how to start with Apache Camel by Spring Boot.

Related Articles:

I. Technologies for Apache Camel tutorial

– Java 1.8
– Maven 3.3.9
– Spring Tool Suite – Version 3.8.1.RELEASE
– Spring Boot: 1.4.0.RELEASE

  • ActiveMQ 5.8.0 Release

II. Overviews

1. Structure of project

apache camel message router - structure of project

2. Step to do

  • Create Spring Boot project
  • Add needed dependencies
  • Configure main run controller for Camel
  • Create ActiveMQ Connection bean
  • Create Router class
  • Run & check result

    III. Practices

    1. Create Spring Boot project

    Open Spring Tool Suite, on main menu choose File->New->Spring Starter Project, input project info as below:

spring apache router - create spring boot project

Press Next then Finish. Spring Boot project is created successfully.

2. Add needed dependencies

More at:

https://grokonez.com/java-integration/start-apache-camel-message-router-spring-boot

Discussion (0)

Forem Open with the Forem app