File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes (urgent) J2ME->Servers : load balacing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "(urgent) J2ME->Servers : load balacing" Watch "(urgent) J2ME->Servers : load balacing" New topic

(urgent) J2ME->Servers : load balacing

Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
Hi all,

I developped a J2ME application wich to connect(by HTTP)to one of my N servers.
There are N Servers:You can download the J2ME application(Jar) from one of the N servers.

I would implement a solution to balance the load:
I thought about two solutions:

1-Side client:
The choice of adresse to connect to Servers is random beetwen N adresses:

like that the load is balaced beetwen the N Servers

2-Side Server:
My second solution is based on the J2ME application's
page of download:
In this solution the J2ME application doesn't choice beetwen (N Server's addresses)to connect by HTTP.Rather the J2ME application to connect to server where it is downloaded.I suppose that the number of connection is equivalent with the number of the J2ME application's downloads.We fix a maximum number of the J2ME application's downloads. If the number of the J2ME application's download is superior to the fixed value then the client is redirected to another server etc...

Share your experience with me about load balacing.

Thank you


We are ones that build the world, thus build it well.
Ed Schepis

Joined: Feb 06, 2004
Posts: 25
If you use Tomcat as web server you could take a look at
However is a good start point for thinking about load balancing self-made solutions


SCMAD 1.0 - SCEA - SCJA - [<a href="" target="_blank" rel="nofollow">My Weblog</a>]
I agree. Here's the link:
subject: (urgent) J2ME->Servers : load balacing
It's not a secret anymore!