Search Tutorials


Deployment on JBoss Fuse | JavaInUse

JBoss Fuse Tutorial - Configuring the Development Environment for deployment of Camel Project on JBoss Fuse

Apache Camel - Table of Contents

File Transfer Using Java DSL Apache Camel Apache Camel Java DSL + Spring Integration Hello World Example Apache Camel Exception Handling Using Simple Example Apache Camel Redelivery policy using example Integrate Apache Camel and ActiveMQ EIP patterns using Apache Camel Apache Camel Tutorial- Integrate Spring Boot+ Apache Camel Apache Camel Tutorial- Integrate with MySQL DB using SQL query Apache Camel EIP - Splitter and Aggregator pattern Apache Camel Unit Testing Apache Camel + Spring + Quartz Hello World Example Camel application deployment on JBoss Fuse Apache Camel + Apache CXF SOAP Webservices Apache Camel + JAX-RS REST Webservice Apache Camel + CXFRS REST Webservice Apache Camel Routing Slip EIP Pattern Apache Camel Dynamic Router Pattern Apache Camel Load Balancer EIP Pattern Apache Camel Interceptors Apache Camel + Kafka Hello World Example Apache Camel - Marshalling/Unmarshalling XML/JSON Data Example Apache Camel Tutorial - Send SMTP Email Using Gmail Apache Camel Tutorial - SEDA component Hello World Example Spring Boot + Apache Camel + RabbitMQ - Hello World Example Apache Camel Tutorial - Idempotent Consumer using MemoryIdempotentRepository and FileIdempotentRepository Spring Boot + Apache Camel JDBC component + MySQL - Hello World Example Spring Boot + Apache Camel SQL component + MySQL - Hello World Example Spring Boot + Apache Camel SQL component + Transaction Management Example

Overview

In the previous chapter we went through Apache Camel and its features. In this chapter we will do the project setup which will be required throughout this series.
We will be creating a Maven project with minimum dependencies added to POM for getting Camel up and running.
In future chapters further dependencies will be added to the POM.xml as and when required. The dependencies are added for deploying our application on JBoss Fuse

Lets Begin

For this series we will be using
1. Eclipse IDE(Luna)
We will be creating a Maven Project.
Open the Eclipse IDE.
1. Go to File->other->Maven Project.Click Next Button.

camel-1

2. If not already selected, select Use default Location,select a simple project. Click Next Button.

camel-2

4. Enter the values for Group Id as com.javainuse and Artifact Id as camel-test.

camel-3

5. Click Finish



Our Maven Web Project is now created.
Under the resources folder create Folders->META-INF->spring. This is the default path where
Fuse looks for the config files. We will now modify the pom.xml file as follows-
Add dependencies required for Apache Camel- Here we have only added the camel-core dependency.
Other dependencies will be added in future chapter as required. After modification our pom.xml file is as follows-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.javainuse</groupId>
	<artifactId>camel-test</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<packaging>bundle</packaging>

	<dependencies>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-core</artifactId>
			<version>2.8.0</version>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
			</plugin>
			
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<extensions>true</extensions>
				<version>2.4.0</version>
			</plugin>
			
		</plugins>
	</build>
</project>

Here we have configured the packaging as Bundle. This is the packaging
required by Jboss Fuse server. For achieving this packaging we have added the Apache Felix Plugin
Now run the following Maven command.
1. clean:install - This will download the dependencies required.
So our Eclipse is now configured.
Eclipse project structure at the end of this chapter is as follows-
camel-4

What Next?

In the next chapter will implement Apache Camel Hello World Project and deploy it on JBoss Fuse.