473,320 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

servlet life cycle ... a simple but typical Q.

dmjpro
2,476 2GB
we know all the things related to servlet lifecyle but this is enough for say any one ... but in practical it needs quite clear conception...

now listen my conception ....

A servlet is loaded first time when a request comes .... then init called....

suppose while container serves the request no other request made....

then how the container decides when to call destroy for that servlet???

i mean how long container will keep a servlet idle?????

i think u got my point ..... plz help
and if anything wrong in my conception then plz correct that....

thnaxxxx in adddvanccceeeee
Mar 21 '07 #1
2 1380
r035198x
13,262 8TB
we know all the things related to servlet lifecyle but this is enough for say any one ... but in practical it needs quite clear conception...

now listen my conception ....

A servlet is loaded first time when a request comes .... then init called....

suppose while container serves the request no other request made....

then how the container decides when to call destroy for that servlet???

i mean how long container will keep a servlet idle?????

i think u got my point ..... plz help
and if anything wrong in my conception then plz correct that....

thnaxxxx in adddvanccceeeee
the servlet keeps running until the server is stopped.
Mar 21 '07 #2
dmjpro
2,476 2GB
okkk .... waitttt , let me clearify first

when a request made for a servlet then .. if the servlet doesn't get loaded then loaded first ... and sperate thread cretaed to run the service method for that servlet when the service method generated the response then the thread stopped

now my confusion in that if i create a child thread in side doget or dopost and the parent thread terminates before child thread terminates

then what happens.....????

one more Q. .... when the destroy method gets called for a servlet???

is this scene same for JSP also or not????

plz help... thanxxx
Mar 22 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Hai Tran | last post by:
Any help is appreciated. Installed Tomcat 4.1 and Mysql on a WinXP. I've manage to get Tomcat up and was able to view my first application ( myhome ) simple home page. Tomcat was installed under...
55
by: amanda992004 | last post by:
Excluding the factors of the brain capability, i.e I am not asking about this factor, if you are a single, aside from enjoying coding or debugging, how do you make time to eat properly, i.e...
1
by: athos | last post by:
Hi all, Believe you have sound experience in development, however, if we look at the whole Software Development Life Cycle (SDLC) of the project, say, 1. Project Initiation, 2. Gathering...
1
by: Kevin Schneider | last post by:
I am trying to POST an XML string to a Java servlet, but I am getting the error "The underlying connection was closed: An unexpected error occurred on a receive." when I try to get the response....
6
by: jim | last post by:
Hi All, I like to know the life cycle of an ASP .NET Application( incudieng server application, such as .NET Web Service). That means from initialization to fully running and how to reboot it or...
16
by: bharathi.vempati | last post by:
hi Can any one explain me the life cycle of C from source code to process termination. please make it fast k bye -ramya
2
by: Garg | last post by:
Hi All, I am facing one problem if you are having any solution please tell me. I have to pass an array from javascript to servlet. for this i created one array and pass that through submitting...
3
by: aaryan | last post by:
hi all, just want to know the life cycle of an asp.net page with relevant example for each stage. i find many web sites demonstrating them but i feel they are too complex to follow. so can anybody...
1
by: =?Utf-8?B?U2FtZWVrc2hh?= | last post by:
I vaguely know that HTTP Post does not send all the data (hidden fields?) along with the request. I would like to know the stage in ASP.Net application life cycle where the POST data is read - is...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.