we have two applications A1 & A2 both are accesing the same
databse table employee at the same time how we will manage
this so that both application can get the correct no of
emloyee while A1 is inserting a employee at the same time
while other applicatuion is getting the empployee list.
Answer Posted / krish
By implementing the class with SingleTheeadModel interface.
(Or) by writing the separate synchronized methods for insert
and retrieve methods. (or)by avoiding to declare Connection
object as instance variable.
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
What is the use of resourcebundle.properties file in Struts Validation framework?
Where should struts xml be placed?
How to upload struts file?
What applications use apache struts?
What are the two types of validations supported by validator framework?
What are interceptors in struts 2?
How to convert struts to spring mvc?
What is the life cycle of actionform?
Explain about struts relation to html tags?
What are the ways in which duplicate form submission can occur?
What is role of action class?
Does struts include its own unit tests?
What is a custom tag?
How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?
What is the purpose of @customvalidator annotation?