GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 590 of 928    Print  
i have problem with threads implementation in servlets
the problem is the servlets which uses instance variables
and if we pass request from two diff servers the o/p
generated is mis matching with each other.

i have also userd synchronized block but it is not working well
(servlet not implementing the single thread model )


  
Total Answers and Comments: 1 Last Update: April 22, 2006     Asked by: vishal 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 22, 2006 08:16:31   #1  
Rajesh        

RE: i have problem with threads implementation in serv...
implement the interface called as javax.servlet.SingleThreadModel and doesn't have any abstract methods in it to implement
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : In singleton class ,only one time the instance wil create.Example....public class Sin{  static Sin s=null;    public static void main(String a[])  {      create();     create();     ...

Latest Answer : UNICAST is 1-1. MULTICAST is 1-M. ...

Latest Answer : syncronized - key word used for maintain consistence state of common resource like a file, an array, a variable ,etc when many thread share among them.   in java this is syncronization implemented in two ways  1. synchrnization method 2. ...

Latest Answer : the code which has the probability of raising an exception is placed in the try block. the code for handling the situation when an exception occurs is placed in the catch block with the instance of the exception as the parameter. when an exception ...

Latest Answer : final class cannot be subcassed ...

Latest Answer : Thread is a single sequence of execution within a process. ...

Latest Answer : 1. Extending the Thread class. 2. implementing the Runnable interface.   and implementing the Runnable interface is best way as in Extending Thread class u cannot extend any other class. but in Implementing Runnable interface u can extend ...

Latest Answer : "thread.isAlive()" this is the method. Regards Mohan ...

Latest Answer :        It is interthread communication,this is performed using        Wait(),notify() and notifyall() ...



 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

ODP.NET - Working with OracleDataAdapter with OracleCommand

ODP NET Working with OracleDataAdapter together with OracleCommand In the previous examples we worked with OracleDataAdapter by directly specifying SQL statements You can also pass OracleCommand to OracleDataAdapter This is very useful if you deal with stored procedures covered in Chapter 5 or bind
 

ODP.NET - Working with Bind Variables together with OracleParameter

ODP NET Working with Bind Variables together with OracleParameter With the help of OracleParameter you can include bind variables within any SQL statement These bind variables are nothing but run time query parameters The values in the SQL statement are bound at run time when we use bind variables m
 

ODP.NET - Handling Nulls when Working with OracleDataReader

ODP NET Handling Nulls when Working with OracleDataReader When we work with OracleDataReader or for that matter even with data rows in a data table we may come across nulls The following is the efficient way to deal in with such scenarios mosgoogle geshibot language VB NET" create connect
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

ODP.NET - Working with DataTableReader

ODP NET Working with DataTableReader DataTableReader is complementary to a DataTable object and is mainly used as a type of Data Reader in the disconnected mode The following is the modified code mosgoogle geshibot language VB NET" create connection to db Dim cn As New OracleConnection D
 

ODP.NET - Retrieving a Single Row of Information Using OracleDataAdapter

ODP NET Retrieving a Single Row of Information Using OracleDataAdapter In the previous example we worked with a set of rows in the DataTable object Now we shall work with a particular row using the DataTable object The following code accepts an employee number from the user and gives you the details
 

SQA Implementation

SQA Implementation Developers and the SQA team create a development plan before they build an application The developers write following the SDLC plan while the SQA team writes the Software Quality Assurance Plan to ensure that the SDLC plan was executed If these documents by the developers and the
 

Print Servers

Print Servers Print server is a server or advice that is used to connect many printers of a network to it Using the print server any computer on the network can give a print command to the server and the print server will get the job done accordingly Usually a print server is configured on a compute
 

Microsoft AJAX Library - Functions as Variables

Functions as Variables In JavaScript functions are first class objects This means that a function is regarded as a data type whose values can be saved in local variables passed as parameters and so on For example when defining a function you can assign it to a variable and then call the function thr
 

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