Saturday, 4 February 2012
J2EE: SERVLET: Servlet Life Cycle
Do you like this Article?
Life cycle of a servlet starts when its first load in the memory space in web server and ends when unloaded from the server memory. we can divide this in 3 steps.
- Server loads the servlet class.
- Creates an instance for the servlet class.
- Server initializes the instance by calling init() method.
- Server creates a request & a respond object based on the client's request.
- Invokes the service() method of the servlet, passing the request respond object.
- service() method process the request and use the respond object to create the client respond.
- service() method can invoke can also invoke other methods like doGet(), doPost(), doDelete(), doOptions(), doPut() and doTrace().
- Server calls the destroy() method to relinquish any resources such as file handles that are allocated to that servlet. destroy() method is invoked once in a servlet's life time.
- Then the server unload the servlet and its objects, and it's memory can be garbage collected.
Subscribe to:
Post Comments
(
Atom
)
Popular Posts
-
public - public means everyone can access it.That means it's in global scope. As, main method is called by JVM [ Java Virtual Machine...
-
throw is used to throw an exception in a program, explicitly . Whereas, throws is included in the method's declaration part, wi...
-
Singleton in one of the most popular yet controversial design pattern, in the world of object oriented programming. It's one of t...
-
Web Container / Servlet Container / Servlet Engine : In J2EE Architecture , a web container (also known as servlet container or ser...
-
Program compiles. But at runtime throws an error “NoSuchMethodError”.
-
Vector : It's synchronized. It's slower than ArrayList. It's generally used in ...
-
doGet(): protected void doGet(HttpServletRequest req, HttpServletResponse resp)throws ServletException, java.io.IOException – is a met...
-
In Java Programming Language , we must declare a variable name and type, before using it. The data type of a variable defines the th...
68 Responses to “ J2EE: SERVLET: Servlet Life Cycle ”
26 February 2012 at 13:26
Its really helpful!!
5 March 2012 at 02:00
Thanks for visiting! :)
19 April 2012 at 01:13
Thanks for sharing the information i found it very useful.
Thanks again..
19 April 2012 at 22:13
@namastu
you r most welcome my friend!!
6 September 2012 at 18:00
its great yar !
6 September 2012 at 18:02
have u any interest in data structures using c++
22 December 2012 at 10:06
very nice pictorial demonstration of servlet life-cycle. but remember that the destroy method won't be invoked if server crashes.
11 September 2013 at 23:16
... when is the servlet loaded and unloaded? When the container (say Tomcat) gets started and shut down? ... or restarted?
11 September 2014 at 13:11
important servlet interview questions with answer
http://www.itsoftpoint.com/?page_id=2425
11 September 2014 at 13:14
recently asked important servlet interview questions with answer
http://www.itsoftpoint.com/?page_id=2425
19 August 2016 at 15:45
Great Blog Thanks.
Here You Can Find Your First Round Interview question For Job .
Struts Interview Questions
OOPs Interview Questions
JSP Interview Questions
3 May 2017 at 12:20
The blog gave me idea about the servlet and The life cycle of servelet are explained in an easy and an understandable manner Thanks for sharing this post
Java Training in Chennai
20 June 2017 at 14:51
Thanks a lot! You made a new blog entry to answer my question; I really appreciate your time and effort.And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things
java training institutes in chennai | java j2ee training institutes in velachery
23 June 2017 at 16:14
Thanks a lot! You made a new blog entry to answer my question; I really appreciate your time and effort.
Thank u so much .
java training in chennai |
java training institutes in chennai
3 August 2017 at 12:58
Nice to read this article.... Thanks for sharing.....
Android Training
19 October 2017 at 12:59
Great Article, thank you for sharing this useful information!!
Linux Online Training India
Online devops Training India
Online Hadoop admin Training India
2 December 2017 at 14:51 This comment has been removed by the author.
12 March 2018 at 16:59
Australia Best Tutor is one of the best Online Assignment Help providers at an affordable price. Here All Learners or Students are getting best quality assignment help with reference and styles formatting.
Visit us for more Information
Australia Best Tutor
Sydney, NSW, Australia
Call @ +61-730-407-305
Live Chat @ https://www.australiabesttutor.com
Our Services
Online assignment help
my assignment help Student
Assignment help Student
help with assignment Student
Students instant assignment help
27 June 2018 at 17:00
Really informative blog.I got some valuable information from this. Keep posting
Java Training in Chennai | Java Training Institute in Chennai
19 July 2018 at 19:56
Learn how our role-based and specialty certifications help you demonstrate your deep AWS knowledge. Credo Systemz provides the best AWS Training to get your certifications easily.
AWS is designed to allow application providers, ISVs, and vendors to quickly and securely host your applications. Credo Systemz provides the best AWS Training to get your certifications easily.
aws training in chennai with placement | aws authorized training partner in chennai
10 August 2018 at 15:11
I loved this blog. java training in chennai
6 September 2018 at 22:13
Your blog is very useful for me, Thanks for your sharing.
20 September 2018 at 14:00
Nice blog with excellent information. Thank you, keep sharing
21 September 2018 at 19:31
Wonderful article, very useful and well explained.
MSBI Training in Hyderabad
15 October 2018 at 09:09
Excellent informative blog, Thanks for sharing.
SEO Training
23 October 2018 at 15:47
This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.
Microstrategy Training
Core Java Training
JEE Training in Chennai
13 November 2018 at 13:08
Nice post. Thanks for sharing such a recent updates.
Best Spoken English Chennai
Spoken English Chennai
Best English Coaching Center in Chennai
Best English Course in Chennai
Best Spoken English Classes near me
Spoken English Institutes in Chennai
English Spoken Centre Chennai
22 November 2018 at 17:46
Learned a lot from your blog, keep sharing more like this.
Python Training in Chennai
Python classes in Chennai
Machine Learning Course in Chennai
Azure Training in Chennai
R Training in Chennai
UiPath Training in Chennai
1 December 2018 at 17:00
Thanks for the blog loaded with so many information.
Selenium Training in Chennai
Best Selenium Training Institute in Chennai
ios developer training in chennai
.Net coaching centre in chennai
French Classes in Chennai
Big Data Training in Chennai
Best JAVA Training in Chennai
SEO Training Center in Chennai
SEO Institutes in Chennai
5 December 2018 at 13:24
Awesome post, continue sharing more like this.
Article submission sites
Education
6 December 2018 at 18:07
Excellent and useful blog admin, I would like to read more about this topic.
DevOps certification Chennai
DevOps Training in Chennai
DevOps Training near me
DevOps Training institutes in Chennai
AWS Training in Chennai
AWS course in Chennai
13 December 2018 at 17:28
Great post! Thanks for sharing.
Mobile Testing Training in Chennai | Mobile Testing Course in Chennai | Mobile Automation Testing Training in Chennai | Mobile Testing Training | Mobile Application Testing Training | Mobile Apps Testing Training | Mobile Application Testing Training in Chennai | Mobile Appium Training in Chennai
8 January 2019 at 15:07
Great article keep posting daily
Machine learning training in chennai
10 January 2019 at 16:20
Read this article very useful for me
best azure certification training in chennai
29 May 2019 at 11:17
Thank you for sharing valuable information.
Java Training in OMR
10 June 2019 at 17:16
Thanks for sharing.
java training in chennai
26 June 2019 at 13:45
Amazing article. Your blog helped me to improve myself in many ways thanks for sharing this kind of wonderful informative blogs in live.
javascript training in chennai | javascript training institute in chennai | javascript course in chennai | javascript certification in chennai | best javascript training in chennai
6 July 2019 at 17:30
Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
Java Training in Chennai | J2EE Training in Chennai | Advanced Java Training in Chennai | Core Java Training in Chennai | Java Training institute in Chennai
30 July 2019 at 11:17
nice blog
best java training in chennai
best python training in chennai
selenium training in chennai
selenium training in omr
selenium training in sholinganallur
angularjs training in chennai
aws training center in chennai
9 September 2019 at 18:37
Very nice article. Thanks for sharing such valuable information about java.
5 November 2019 at 10:50
nice...
Inplant Training in Chennai
Iot Internship
Internship in Chennai for CSE
Internship in Chennai
Python Internship in Chennai
Implant Training in Chennai
Android Training in Chennai
R Programming Training in Chennai
Python Internship
Internship in chennai for EEE
5 November 2019 at 16:51
amazing.
Acceptance is to offer what a
lighted
A reduction of 20 in the price of salt
Power bi resumes
Qdxm:sfyn::uioz:?
If 10^0.3010 = 2, then find the value of log0.125 (125) ?
A dishonest dealer professes to sell his goods at cost price
but still gets 20% profit by using a false weight. what weight does he substitute for a kilogram?
Oops concepts in c# pdf
Resume for bca freshers
Attempt by security transparent method
'webmatrix.webdata.preapplicationstartcode.start()' to access security critical method 'system.web.webpages.razor.webpagerazorhost.addglobalimport(system.string)' failed.
Node js foreach loop
13 November 2019 at 14:30
nice blog.
Internship for mba
Internships in chennai for cse students
Robotics training
Ccna certification in chennai
Industrial training for diploma ece students in hyderabad
Internship certificate for bba student
Internships in bangalore for ece
Internship
Inplant training report
Internship in coimbatore for eee
13 November 2019 at 14:32
awesome.
Complaint letter to bank for deduction
Cisco aci interview questions
Type 2 coordination chart l&t
Mccb selection formula
Given signs signify something and on that basis assume the given statement
Adder and subtractor using op amp theory
Power bi resume for 3 years experience
Power bi resume for experience
Php developer resume for 2 year experience
Ayfy cable
18 December 2019 at 18:13
Excellent post, thanks for this. I gathered lots of information from this and I am happy about it. Do share more updates.
PHP Training in Chennai
Best PHP Training Institute in Chennai
PHP Institute in Chennai
7 January 2020 at 23:30
Best way to convert json to xml is JSON to XML
21 April 2020 at 10:22
great post...
Intern Ship In Chennai
Inplant Training In Chennai
Internship For CSE Students
Online Internships
Coronavirus Update
Internship For MBA Students
ITO Internship
4 May 2020 at 14:35
Effective blog with a lot of information. I just Shared you the link below for ACTE .They really provide good level of training and Placement,I just Had Java Classes in ACTE , Just Check This Link You can get it more information about the Java course.
Java training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery
25 May 2020 at 14:06
Pretty article! I found some useful information in your blog....
so here we provide,
We provide you with flexible services and complete hybrid network solutions. It can provide your organisation with exceptional data speeds, advanced external security protection, and high-resilience by leveraging the latest SD-WAN and networking technologies to monitor, manage and strengthening your organisation’s existing network devices.
https://www.quadsel.in/networking/>
https://twitter.com/quadsel/
https://www.linkedin.com/company/quadsel-systems-private-limited/
https://www.facebook.com/quadselsystems/
#quadsel #network #security #technologies #managedservices #Infrastructure #Networking #OnsiteResources #ServiceDeskSupport #StorageServices #WarrantyAMCServices #datacentersolutions #DataCenterBuild #EWaste #InfraConsolidation #DisasterRecovery #NetworkingServices #ImagingServices #MPS #Consulting #WANOptimisation #enduserservices
11 July 2020 at 11:39
wonderful article.thanks for great information. Our team manages all your social accounts and organized regular engaging social media campaigns so that your business is always creating a buzz on social media.
digital marketing consultants in chennai | Leading digital marketing agencies in chennai | digital marketing agencies in chennai | Website designers in chennai
16 March 2021 at 12:16
Useful informative. Thanks for sharing.
Best Bike Taxi Service in Hyderabad
Best Software Service in Hyderabad
26 May 2021 at 18:05
I think you did an awesome bsc 3rd year result job explaining it. Sure beats having BA 2nd year result to research it on my own. Thanks
3 June 2021 at 11:08
Wok is fantastic. Thank you very much for sharing this useful blog with us. My problem has been solved.
1000 Social BookMarking Sites List
17 June 2021 at 15:56
I really appreciate your help with my project! Thalaivi Full Movie 2021
28 July 2021 at 15:28
Very Informative. Thanks for sharing
Best Interior Designers
14 August 2021 at 19:29
thank you for the post on travelling in Dehradun, Uttarakhand, India
15 September 2021 at 16:49
Thanks for sharing this!! This is a great post with lots of useful information!! Continue to do so! Thank you for making it available.
digital marketing course in hyderabad
digital marketing training in hyderabad
14 October 2021 at 17:13
This blog is so cool. I am learning Java Training online. This blogs helps me find out better understanding about salesforce training. Thank you for this blog!
21 March 2022 at 12:19
your article was excellent am seeing a long time one of the good blogs. content always nice.
app development in chennai
mobile app development in chennai
Digital Marketing Company in chennai
Digital marketing Services in chennai
1 April 2022 at 14:36
what a great blog thank you so much for sharing.
Hire Software Developers in chennai
Top mobile App development companies in chennai
Web Application development company in chennai
App development companies in chennai
Ecommerce development company in chennai
1 June 2022 at 10:48 This comment has been removed by the author.
18 June 2022 at 13:20 This comment has been removed by the author.
7 October 2022 at 12:18
Thanks for your valuable information
Best eCommerce Platform
Home Decor
Wall Decor
Chikkalakka
2 October 2023 at 05:36
Van
izmir
Artvin
Tunceli
Eskişehir
OXZO
7 October 2023 at 03:28
elazığ
erzincan
bayburt
tunceli
sakarya
Q88XU
17 October 2023 at 07:29
https://titandijital.com.tr/
bingöl parça eşya taşıma
kırşehir parça eşya taşıma
gümüşhane parça eşya taşıma
rize parça eşya taşıma
F8UEYG
23 October 2023 at 05:32
amasya evden eve nakliyat
eskişehir evden eve nakliyat
ardahan evden eve nakliyat
manisa evden eve nakliyat
karaman evden eve nakliyat
TKRO
24 December 2023 at 10:35
DDCB1
Kırşehir Görüntülü Sohbet Kızlarla
en iyi ücretsiz görüntülü sohbet siteleri
kayseri canli sohbet chat
kırklareli sesli sohbet sesli chat
siirt muhabbet sohbet
manisa telefonda kızlarla sohbet
Çanakkale Canli Sohbet Chat
ankara yabancı sohbet
karaman sohbet muhabbet
Post a Comment