tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Lipscombe" <a...@cobar.fsbusiness.co.uk>
Subject RE: Is it safe to use Runtime.exec() from within a JSP
Date Tue, 03 Jun 2003 13:11:59 GMT


Thanks for the info - I'll investigate.


> You could launch a chess engine that took commands through sysin and
gave results back in sysout, then interface that within a JSP page
somehow 

Any recommended URLs that describe this technique?


TIA - Adam


-----Original Message-----
From: Jason Bainbridge [mailto:jason@jblinux.org] 
Sent: 03 June 2003 13:37
To: Tomcat Users List
Subject: Re: Is it safe to use Runtime.exec() from within a JSP


On Tue, 3 Jun 2003 20:23, Adam Lipscombe wrote:
> Jason,
>
> Thanks for the input...
>
> I am worried about what happens to the rest of Tomcat if one thread
> blocks for (potentially) a long time while a user is playing an
external
> game. Will this have an adverse affect?

What do you mean by an 'external game'? You can't (as far as I am aware)
do 
something like use runtime.exec to run something like a chess game on
the 
server and then let the user play it as if it were on their own PC. 

You could launch a chess engine that took commands through sysin and
gave 
results back in sysout, then interface that within a JSP page somehow 
however. There are precautions you can take to make Runtime.exec()
thread 
safe and there are quite a few tutorials and example code on this on the
web 
you might want to check out as well.

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
webmaster@kde.org 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003
 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message