[
https://issues.apache.org/activemq/browse/CAMEL-2670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Charles Moulliard closed CAMEL-2670.
------------------------------------
Resolution: Fixed
code committed
> Add a new example : loadbalancing with camel-mina
> -------------------------------------------------
>
> Key: CAMEL-2670
> URL: https://issues.apache.org/activemq/browse/CAMEL-2670
> 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.