You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by tamir <ta...@movious.com> on 2002/03/10 10:01:44 UTC

RE: applet to servlet problem - JVM problem ?

Hi,
I've checked again my applet and ensured that I'm calling openConnection
each time.

However, I've discovered that when I'm running this applet using java-plugin
it
works well(all the servelt requests are called simoulatnously).
Nevertheless, I still would like it to work without the plug-in.

Does anybody have something close that works without the plugin ?
I'd really appreciate your help.

Tnx,
Tamir





-----Original Message-----
From: Toru Watanabe [mailto:t-watanabe@du.jp.nec.com]
Sent: Friday, March 08, 2002 3:22 AM
To: Tomcat Users List
Subject: Re: applet to servlet problem



tamir>       java.io.InputStreamReader is = new
tamir> java.io.InputStreamReader(con.getInputStream()); 
                                 ^^^

Do each thread uses their own con?
each thread must create URLConection newly
inside run() if each thread need to connect 
to server in the same time.

regards,
Watanabe.

In the message "applet to servlet problem"
               <D0...@IBM3000>
tamir <ta...@movious.com> wrote:

tamir> Hello everybody,
tamir> I'm quite sure it's not tomcat problem, however, I give it a shot,
mainly
tamir> because I know all the people here
tamir> usually have great ideas...

tamir> I'm using tomcat 3.3.1b. 
tamir> I've an applet that runs several threads. Each thread calls to the
server
tamir> using URLConnection.
tamir> Everything works fine, however, only 2-3 threads can simoulantously
achieve
tamir> the
tamir> server, and the rest are waiting. When one thread finishes, the other
one
tamir> can connect the server.

tamir> The "stuck" command is:
     
tamir>       java.io.InputStreamReader is = new
tamir> java.io.InputStreamReader(con.getInputStream()); 

tamir> I'm using the Applet tag to run my applet.

tamir> Do you have any clues for me ?

tamir> Best regards,
tamir> Tamir

tamir> --
tamir> To unsubscribe:   <ma...@jakarta.apache.org>
tamir> For additional commands: <ma...@jakarta.apache.org>
tamir> Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>