Templates by BIGtheme NET

Camel

Using WireTap method in Camel Routers

featured_image

Description : By using the wireTap method in the Java DSL, you can send a copy of the exchange to a secondary destination without affecting the behavior of the rest of the route. With Out WireTap Method: // add our route to the CamelContext context.addRoutes(new RouteBuilder() { @Override public void configure() { // load file orders from src/data into the ...

Read More »

Using Recipient Lists In Camel Routers

featured_image

Description : 1) If we are not priorities the customers all orders coming from small and top-tier customers are going directly into production. 2) We can define customer types like small and top-tier. Only For top-tier customers orders processed parallel by the both accounting and production departments. For small customer, first orders will go to accounting first. Here In accounting ...

Read More »

Using Multicasting In Camel Routers

featured_image

Description 1) When the list of destinations is known ahead of time and is static, you can add an element to the route that will consume messages from a source endpoint and then send the message out to a list of destinations. (accounting dept & production dept). 2) Using this multicasting technique, we can improve the speed of operations by ...

Read More »

How to Use message filters in Camel Routers

featured_image

Need of Message filters 1) Suppose QA department has expressed the need to be able to send test orders into the live web front end of the order system. 2) In this case we required some message filter, that stop the QA messages so that they are not to be processed. 3) Incoming messages only pass through the filter if ...

Read More »

Content-Based Router Using Camel

featured_image

1) Content-Based Router (CBR) is a message router that routes a message to a destination based on its content. 2) The content could be a message header, the payload data type, part of the payload itself—pretty much anything in the message exchange. 3) The CBR routes messages based on their content. In this case, the filename extension (as a message ...

Read More »

Creating Camel routes with Spring

featured_image

Description : 1) The core framework allows to you “wire” beans together to form applications. This wiring is done through an XML configuration file. 2) we need are a few Java beans (classes),Spring XML configuration file, and an ApplicationContext. The ApplicationContext is similar to the CamelContext. 3) This example, we have two routing points, One is from activemq -> Java ...

Read More »

Routing with Camel

featured_image

Message Router : 1) A message router consumes messages from an input channel and, depending on a set of conditions, sends the message to one of a set of output channels. 2) input and output queues are unaware of the conditions in between them. The conditional logic is decoupled from the message consumer and producer. 3) A customer has two ...

Read More »

Camel Fundamentals

featured_image

Camel’s message model In Camel, there are two abstractions for modeling messages. 1) org.apache.camel.Message— The fundamental entity containing the data being carried and routed in Camel. 2) org.apache.camel.Exchange— The Camel abstraction for an exchange of messages. This exchange of messages has an “in” message and as a reply, an “out” message. Message 1) Messages are the entities used by systems ...

Read More »

Introduction to Camel

featured_image

Description 1) Camel is an integration framework that aims to make your integration projects productive and fun. Camel’s focus is on simplifying integration. 2) The core of the Camel framework is a routing engine, or more precisely a routingengine builder. 3) It allows you to define your own routing rules, decide from which sources to accept messages, and determine how ...

Read More »