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
Which interceptor is responsible for file upload support?
State an example of struts configuration file as an action parameter for action servlet.
What are the main classes which are used in struts application?
What is the difference between struts and spring? Explain
Explain the components of struts?
What is the purpose of @stringlengthfieldvalidator annotation?
What validate() and reset() method does ?
What do you mean by ognl?
What is the use of form bean in struts?
What applications use apache struts?
How duplicate form submission can be controlled in struts?
How we can controlled duplicate form submission in struts?
What is actionform in struts?
For a single Struts application, can we have multiple struts-config.xml files?
How tag libraries are defined in Struts?