we have web application PRIME in which clients login and access the information developed in jsf
this PRIME interacts with CGS,which acts as server to PRIME and process the requests.
CGS gets the requests from PRIME and sends them to actual back end server DBSERVER.
DBSERVER listens the requests on 4 ports,for client and server communication i am usin apach mina.

my requirement is I need to have a load balencer in prime(or cgs) so that the client requests are handeled
on all 4 ports of DBSERVER in a round robin fashion.

can any body help me how to write the load balencer,I have seen apache camel for load balencing but i am not
able to integrate it in my application.

Thank you