Solved

Loading large applet

Posted on 1998-06-08
5
195 Views
Last Modified: 2011-09-20
We have developped an applet having 150 classes. the total size of the classes is 603KB. It loads 350 KB of data from the server using sockets. It works fine with lease lines (internet connection), but when we test it with dialup connection it hangs halfway through.
What may be the probable reason?
0
Comment
Question by:subrat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 2

Expert Comment

by:aziz061097
ID: 1222570
Try the setSoTimeout() with a 0 as parameter to give indefinite time for your inputstream .
0
 
LVL 2

Expert Comment

by:aziz061097
ID: 1222571
Try the setSoTimeout() with a 0 as parameter to give indefinite time for your inputstream .
0
 
LVL 5

Expert Comment

by:fontaine
ID: 1222572
By total size of the classes, do you mean that you are not bundling them in a JAR? This
would reduce the launch time of the applet... Are you using compression to load the
data?


0
 
LVL 1

Expert Comment

by:rprice032897
ID: 1222573
Look at what your are trying to accomplish and see if you might be able to implement this as a servlet that does most of the processing and creates the page.  This could be used to send a reduced size applet to the page for anything that absolutely requires client side code.

One of the most commonly listed complaints on web sites is the amount of time required to load the pages.  If you are loading 600K of applet AND 350K of data to the client, your page will take at least 5 minutes to load (on a 33.6 modem, no dropped packets).  Any functionality and data that gets left on the server improves the load time.  No matter how great and application is, if its too hard to use or access, no one will use it.  I would not use a page that required this kind of load time.  Try servlets, active server pages or other server side code to decrease the client side load.

If you would like to discuss this further off line, drop me an e-mail at r_price@mailexcite.com
0
 
LVL 2

Accepted Solution

by:
aziz061097 earned 100 total points
ID: 1222574
Hi Subrat,

          I am suspecting that the socket connection by default times out . That is the reason I asked you to use the method setSoTimeout() with a 0 as parameter to give indefinite time for the socket. I hope this will fix your problem.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question