GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Computer Associates  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 19 of 23    Print  
Although it is not commonly done, what will you do if you want to have multiple instances of Servlet in memory and if they have to share the execution of a user request ?
(a) Defnie Single Thread model
(b) Cannot be done

  
Total Answers and Comments: 3 Last Update: September 26, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 19, 2005 00:27:38   #1  
chandra        

RE: Although it is not commonly done, what will you do if you want to have multiple instances of Servl...
answer a
 
Is this answer useful? Yes | No
August 17, 2006 12:34:58   #2  
Srini99 Member Since: August 2006   Contribution: 4    

RE: Although it is not commonly done, what will you do...
If we use SingleThreadmodel we can have multiple Instances
 
Is this answer useful? Yes | No
September 26, 2006 11:00:58   #3  
Santh kumar        

RE: Although it is not commonly done, what will you do...

If a class or servlet implements SingleThreadModel interface it depends on the server which technology is implemented.

for server there r 2 options. .......1)Multiple Instances

2) Request serialization

if it(server) follows 1st choice it creates multiple instances for each servlet and then processes the incoming requests.

if it follows 2nd choice it creates single instacne for each servlet and then allows only one servlet to be get processed or handle requests. if more than one request came at once it queues up requests or let them(requests) wait until earlier requests processed.

with regards

santh


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
Related Categories
Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape