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 difference between filters and interceptors ?
What is the use of struts config xml file?
What is the difference between empty default namespace and root namespace?
Are interceptors and filters different?
What are inner class and anonymous class?
What do you mean by actionform?
What is the purpose of @urlvalidator annotation?
What are the major differences between html tags and strut specific html tags?
How to display validation errors on jsp page?
What do you mean by tiles in struts?
Explain the complete struts validator framework.
What helpers in the form of jsp pages are provided in struts framework?
Is struts efficient?
How does struts work?
Explain about how requests from the client are sent?