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 actionform?
What is actioncontext?
What is struts xml?
What is the default suffix for struts2 action uri ?
How struts2 supports internationalization?
What is strut web xml?
What is the purpose of execute() method?
What are the action classes in struts?
What are inner class and anonymous class?
How to override the default error message that can come during file uploading process?
Name some useful annotations introduced in Struts2?
Explain the core end goal while using java struts?
Why is it called struts?
What is difference between actionform and dynaactionform?
Explain how can we upload files in struts2 application?