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 do you mean by actionmapping?
What do you mean by inner class and anonymous class?
What is role of actionservlet?
What are the core classes of the struts framework?
What is struts in j2ee?
What is the default location of result pages and how can we change it?
What is the need of struts?
What is the default suffix for struts2 action uri ?
What is the use of Struts.xml configuration file?
Are interceptors and filters different?
Why actionservlet is singleton in struts?
What is the purpose of @results?
What is the purpose of redirect result type?
What is defeult result type?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?