You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2010/04/23 10:19:23 UTC

[jira] Created: (CAMEL-2670) Add a new example : loadbalancing with camel-mina

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.


[jira] Commented: (CAMEL-2670) Add a new example : loadbalancing with camel-mina

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59082#action_59082 ] 

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: 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.


[jira] Closed: (CAMEL-2670) Add a new example : loadbalancing with camel-mina

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Commented: (CAMEL-2670) Add a new example : loadbalancing with camel-mina

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59060#action_59060 ] 

Willem Jiang commented on CAMEL-2670:
-------------------------------------

@ Charles
I just checked out the example, I think you can put all the camel routes configuration files into a single module and use Profile to start the services one by one.

> 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.


[jira] Commented: (CAMEL-2670) Add a new example : loadbalancing with camel-mina

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59065#action_59065 ] 

Charles Moulliard commented on CAMEL-2670:
------------------------------------------

OK. I will merge the projects to only have one.

> 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.


[jira] Commented: (CAMEL-2670) Add a new example : loadbalancing with camel-mina

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59064#action_59064 ] 

Claus Ibsen commented on CAMEL-2670:
------------------------------------

Yeah that was my thought as well.

For example camel-spring-jms does this afair.
I think that it would be easier as there is only one component.

> 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.