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


Please Help Members By Posting Answers For Below Questions

What do you mean by actionmapping?

521


What do you mean by inner class and anonymous class?

586


What is role of actionservlet?

558


What are the core classes of the struts framework?

506


What is struts in j2ee?

517






What is the default location of result pages and how can we change it?

543


What is the need of struts?

561


What is the default suffix for struts2 action uri ?

544


What is the use of Struts.xml configuration file?

503


Are interceptors and filters different?

535


Why actionservlet is singleton in struts?

584


What is the purpose of @results?

575


What is the purpose of redirect result type?

565


What is defeult result type?

621


What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?

577