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/07 18:43:13 UTC
applet to servlet problem
Hello everybody,
I'm quite sure it's not tomcat problem, however, I give it a shot, mainly
because I know all the people here
usually have great ideas...
I'm using tomcat 3.3.1b.
I've an applet that runs several threads. Each thread calls to the server
using URLConnection.
Everything works fine, however, only 2-3 threads can simoulantously achieve
the
server, and the rest are waiting. When one thread finishes, the other one
can connect the server.
The "stuck" command is:
java.io.InputStreamReader is = new
java.io.InputStreamReader(con.getInputStream());
I'm using the Applet tag to run my applet.
Do you have any clues for me ?
Best regards,
Tamir
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: applet to servlet problem
Posted by Toru Watanabe <t-...@du.jp.nec.com>.
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>