wood burning stoves*
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
Author

(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:
http://adresse1.com
http://adresse2.com
http://adresse3.com
...

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

OULD NADIF


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

Joined: Feb 06, 2004
Posts: 25
If you use Tomcat as web server you could take a look at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/balancer-howto.html
However is a good start point for thinking about load balancing self-made solutions

Ed


SCMAD 1.0 - SCEA - SCJA - [<a href="http://www.edschepis.net" target="_blank" rel="nofollow">My Weblog</a>]
 
 
subject: (urgent) J2ME->Servers : load balacing
 
Similar Threads
Listening for connections
J2me 8/9
IDEs for J2ME development?
live website chat application!
Logging the time it takes for a page to load