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 is the apache struts vulnerability?

703


Can we integrate struts with spring?

787


What is the use of jsonvalidation?

798


Explain about the tag?

841


What is struts framework?

733


What is the purpose of @beforeresult annotation?

761


How interceptor works in struts 2?

800


What does the term struts mean?

735


How the exceptions are handled in struts?

740


What is apache struts cve 2017 5638?

726


What is life cycle of an interceptor?

755


How is the action mapping specified?

710


What is xml based validation in struts2?

758


How we can install struts?

723


What is spring and struts in java?

704