Bear Bibeault wrote:What's up with the run() method?
Bear Bibeault wrote:I'm still not sure what it is you expect your background process to be doing
Bear Bibeault wrote: but it should not be part of a servlet. A servlet should be only for responding to requests.
SCJP 1.5, SCWCD 1.4.
Hanging between Web Services and EJB
Eric Belec wrote:I think I now have figured out your point... I was under the impression that my servlet would be able to perform a timed automated job which runs at all times and independent of clients Get Requests.
I guess a servlet only runs when a user requests it right? As such, I can't have a task running at all times?
Does this mean in the code above I'm unintentionally creating a separate job process with each client doGet() request?
Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
SCJP 5, SCWCD 5, SCBCD 5,
SCEA 5,
OCUP Fundamental,
OCUP Intermediate,
OCUP Advanced,
IBM Certified Solution Designer - Object Oriented Analysis and Design, vUML 2
I'd still like to create this servlet the proper way.
Can I also have sessions ...
Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Eric Belec wrote:I think I now have figured out your point... I was under the impression that my servlet would be able to perform a timed automated job which runs at all times and independent of clients Get Requests.
Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Sam Mercs wrote:
Eric Belec wrote:I think I now have figured out your point... I was under the impression that my servlet would be able to perform a timed automated job which runs at all times and independent of clients Get Requests.
By the way did someone say you were right out here? Your thread would have run independent of the clients get request!
Eric Belec wrote:
No.. ohh well I've already created a separate application for the job anyways.. good to know for the future design thanks!
Eric Belec wrote:
I just find it strange that in the tutorial (from my last post), that the login page is actually in .jsp and that its form action is to post to the subscribe page. This alone is very confusing. In my design I would just create a static html page for login and submit it to the controller just as the subscribe.html page does (in the tutorial I posted above). Any thoughts on this would be welcome.
yw of course! (yw==your welcome)Eric Belec wrote:
Thanks for your help Sam,
Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|