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 actionform?

578


What is actioncontext?

553


What is struts xml?

441


What is the default suffix for struts2 action uri ?

552


How struts2 supports internationalization?

654






What is strut web xml?

535


What is the purpose of execute() method?

574


What are the action classes in struts?

522


What are inner class and anonymous class?

549


How to override the default error message that can come during file uploading process?

578


Name some useful annotations introduced in Struts2?

534


Explain the core end goal while using java struts?

528


Why is it called struts?

539


What is difference between actionform and dynaactionform?

596


Explain how can we upload files in struts2 application?

621