camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Moulliard (JIRA)" <>
Subject [jira] Commented: (CAMEL-2670) Add a new example : loadbalancing with camel-mina
Date Mon, 26 Apr 2010 07:55:28 GMT


Charles Moulliard commented on CAMEL-2670:

Merge three maven projects into one. Add profiles to run the test

> Add a new example : loadbalancing with camel-mina
> -------------------------------------------------
>                 Key: CAMEL-2670
>                 URL:
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: Charles Moulliard
>             Fix For: 2.3.0
> Loadbalancing with MINA Example
> ===============================
> This example show how you can easily use the camel-mina component to design a solution
allowing to distribute message 
> workload on several servers. Those servers are simple TCP/IP servers created by the Apache
MINA framework and running in
> separate Java Virtual Machine. The loadbalancer pattern of Camel which is used top of
them allows to send in a Round Robin model
> mode the messages created from a camel-bean component respectively to each server running
on localhost:9999 and localhost:9998.
> MINA has been configured to send over the wire objects serialized and this is what is
showed also in this example.
> The advantage of this apporach is that you don't need to use CORBA or Java RMI for the
communication between the different jvm.
> The example has been configured to use InOut EIP pattern.
> The demo starts when every one minute, a Report object is created from the camel loadbalancer
server. This object is send by the 
> camel loadbalancer to a MINA server and object is serialized. One of the two MINA servers
(localhost:9999 and localhost:9998) receives
> the object and enrich it by setting the field reply of the Report object. The reply is
send back by the MINA server to the camel loadbalancer 
> who will display in its log  the content of the Report object. 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message