Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 28-09-07, 06:14 PM   #1 (permalink)
Junior Member
 
Join Date: Dec 2006
Age: 25
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 swathireddy is on a distinguished road
Question what happens when we give load-on-startup as 0 in web.xml?

Hi friends.......
I just want to know,what happens when we give load-on-startup as 0 in web.xml?
swathireddy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28-09-07, 07:13 PM   #2 (permalink)
Banned
 
Join Date: Sep 2007
Age: 25
Posts: 88
Thanks: 0
Thanked 4 Times in 4 Posts
Thanks: 0
Thanked 4 Times in 4 Posts
Rep Power: 0 satya5321 is on a distinguished road
Re: what happens when we give load-on-startup as 0 in web.xml?

Container creates an instance of the servlet when you have started/deployed the application.and not at the time you made a request.
satya5321 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31-03-08, 05:05 PM   #3 (permalink)
Member
 
Join Date: Mar 2008
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 writetokaruna@yahoo.com is on a distinguished road
Re: what happens when we give load-on-startup as 0 in web.xml?

This tag specifies that the servlet should be loaded automatically when the web application is started.
The value is a single positive integer, which specifies the loading order. Servlets with lower values are loaded before servlets with higher values (ie: a servlet with a load-on-startup value of 1 or 5 is loaded before a servlet with a value of 10 or 20).
When loaded, the init() method of the servlet is called. Therefore this tag provides a good way to do the following:
  • start any daemon threads, such as a server listening on a TCP/IP port, or a background maintenance thread
  • perform initialisation of the application, such as parsing a settings file which provides data to other servlets/JSPs
If no value is specified, the servlet will be loaded when the container decides it needs to be loaded - typically on it's first access. This is suitable for servlets that don't need to perform special initialisation.

So if u give zero low priority will be given.


comments r welcome.

Regards,
R.P.Karunakaran
writetokaruna@yahoo.com is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16-04-08, 02:51 AM   #4 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 luckyshah is on a distinguished road
Re: what happens when we give load-on-startup as 0 in web.xml?

hi swathi
The webcontainer is the responsible for calling the init() before creating the object. but when u r providing the webcontainer first creates the object in the browser after thn it will call the init() metod.
luckyshah is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some Loadrunner FAQs kiran2710 Testing Tools & QA 1 25-10-08 01:42 AM
Diff between Load Testing and Stress Testing? nani_i Testing Tools & QA 8 08-03-08 01:52 PM
FAQ - Performance & Load Testing slinkanand Testing Tools & QA 3 06-02-08 09:27 PM
What are the uses of load testing? What is deferred graphs? What are the different components in load runner? Spoorthi Testing Interview / Technical Questions 0 01-02-07 05:25 PM
How to Start a Startup vjsreevs Inspire yourself & Others - Leaders Zone 0 19-07-06 02:57 PM


All times are GMT +6.5. The time now is 03:05 AM.





Search Engine Optimization by vBSEO 3.1.0