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 are the some useful annotations introduced in struts2?
Explain about token feature in struts?
Why is it called struts?
When it’s useful to use IncludeAction?
What is the use of execAndWait interceptor?
Explain struts?
What’s the utilization of resource bundle properties file in struts validation structure?
How long do struts last?
Which class is the Front Controller in Struts2?
How do struts work?
How many struts config file in a struts application?
Difference between html tags and struts specific html tags
What is the use of reset method of ActionForm class?
When should be opt for struts framework?
In struts, how can we access java beans and their properties?