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 apache struts vulnerability?
Can we integrate struts with spring?
What is the use of jsonvalidation?
Explain about the
What is struts framework?
What is the purpose of @beforeresult annotation?
How interceptor works in struts 2?
What does the term struts mean?
How the exceptions are handled in struts?
What is apache struts cve 2017 5638?
What is life cycle of an interceptor?
How is the action mapping specified?
What is xml based validation in struts2?
How we can install struts?
What is spring and struts in java?