| | |
Stopping a very time consuming class method's execution on tomcat server using JSP.
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2008
Posts: 3
Reputation:
Solved Threads: 0
Re: Stopping a very time consuming class method's execution on tomcat server using JSP.
0
#11 Jun 5th, 2008
Re: Stopping a very time consuming class method's execution on tomcat server using JSP.
0
#12 Jun 5th, 2008
> As far as the programmer making a mess of the programming, that can always happen.
Though the probability increases in this case. :-)
> And, I never said he should call thread destroy, or anything in that manner.
I guess I misread your first post.
Though the probability increases in this case. :-)
> And, I never said he should call thread destroy, or anything in that manner.
I guess I misread your first post.
•
•
•
•
The stop button will call another jsp that will retreive the object stored under that key and call the "stop" method.
I don't accept change; I don't deserve to live.
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Re: Stopping a very time consuming class method's execution on tomcat server using JSP.
0
#13 Jun 5th, 2008
Sorry. It's explained (better, although still not perfectly) in the next post.
;-)
•
•
•
•
The stop method should interupt this thread and perform and needed cleanup.
Last edited by masijade; Jun 5th, 2008 at 3:10 pm.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Re: Stopping a very time consuming class method's execution on tomcat server using JSP.
0
#14 Jun 6th, 2008
NEVER use Thread.stop(). It's extremely dangerous and will more likely than not cause very nasty things to happen.
It's deprecated for a reason you know, and that reason is that it will NOT do any cleanup.
It will kill the thread, and everything in it, now. No questions asked.
If that leaves data in an incomplete or unstable state, it doesn't care. If it leaves network or database resources open it couldn't care less. If it keeps hardware locked, waiting for commands that never can come no more, it's oblivious of that.
It's deprecated for a reason you know, and that reason is that it will NOT do any cleanup.
It will kill the thread, and everything in it, now. No questions asked.
If that leaves data in an incomplete or unstable state, it doesn't care. If it leaves network or database resources open it couldn't care less. If it keeps hardware locked, waiting for commands that never can come no more, it's oblivious of that.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Re: Stopping a very time consuming class method's execution on tomcat server using JSP.
0
#15 Jun 6th, 2008
•
•
•
•
NEVER use Thread.stop(). It's extremely dangerous and will more likely than not cause very nasty things to happen.
It's deprecated for a reason you know, and that reason is that it will NOT do any cleanup.
It will kill the thread, and everything in it, now. No questions asked.
If that leaves data in an incomplete or unstable state, it doesn't care. If it leaves network or database resources open it couldn't care less. If it keeps hardware locked, waiting for commands that never can come no more, it's oblivious of that.
Edit: And yes, it was a very poor choice of a name, and it caused the confusion, but hey, at least I knew what I meant. ;-)
Last edited by masijade; Jun 6th, 2008 at 12:10 pm.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Re: Stopping a very time consuming class method's execution on tomcat server using JSP.
0
#16 Jun 7th, 2008
of course including any such method in a JSP (which the kid was asking for) is as bad as calling Thread.stop()...
It's likely going to be ineffective as well, as the thread may well survive the context in which the JSP is executed.
It's likely going to be ineffective as well, as the thread may well survive the context in which the JSP is executed.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Jun 2008
Posts: 1
Reputation:
Solved Threads: 0
Re: Stopping a very time consuming class method's execution on tomcat server using JSP.
0
#17 Jun 9th, 2008
Dear masijade,
Can u plz help me out in similar kind of proble?
My Server is having two Consecutive very long process having lon time on JBOSS server 4.0.2, how can I make my client to wait till the process ends and responce in JSP apge.
Thanks
Can u plz help me out in similar kind of proble?
My Server is having two Consecutive very long process having lon time on JBOSS server 4.0.2, how can I make my client to wait till the process ends and responce in JSP apge.
Thanks
Re: Stopping a very time consuming class method's execution on tomcat server using JSP.
0
#18 Jun 9th, 2008
![]() |
Similar Threads
- running Perl/CGI scripts under Tomcat server (Perl)
- Tomcat Server (Java)
- difference between TOMCAT server and WEBLOGIC server (Java)
Other Threads in the JSP Forum
- Previous Thread: open separate window
- Next Thread: how to delete multiple records using jsp
| Thread Tools | Search this Thread |
Tag cloud for JSP
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient project read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write






