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.




Answers were Sorted based on User's Feedback



we have two applications A1 & A2 both are accesing the same databse table employee at the same..

Answer / 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

we have two applications A1 & A2 both are accesing the same databse table employee at the same..

Answer / abdul

This can be done thru JDBC isolation properties., there
were some ISOLATION LEVEL where you can achive this.

Is This Answer Correct ?    3 Yes 0 No

we have two applications A1 & A2 both are accesing the same databse table employee at the same..

Answer / shaik baji

If it is a simple and small application synchronize the
Connection object other wise set the lock on the respective
table.

Is This Answer Correct ?    4 Yes 2 No




we have two applications A1 & A2 both are accesing the same databse table employee at the same..

Answer / manidhar

By using triggers concept we can achieve ...

Is This Answer Correct ?    3 Yes 6 No

we have two applications A1 & A2 both are accesing the same databse table employee at the same..

Answer / aravind

I hope version checking concept will help you in this case.

Is This Answer Correct ?    2 Yes 8 No

Post New Answer



More Struts Interview Questions

What is the use of namespace in action mapping in Struts2?

0 Answers  


Is Struts Action class Thread Safe?

14 Answers   Wipro,


Give an example where struts tiles may be used?

0 Answers  


What are the some useful annotations introduced in struts2?

0 Answers  


how can you switch onemodule to another module by switch action class plz explain with exapmle?

1 Answers   HeadStrong, Atos Origin, Satyam,






Hi Friends, why struts introduced in to web application. Plz dont send any links . Need main reason for implementing struts. Thanks Prakash

4 Answers  


Can we write our own ActionServlet for front controller of Struts Applications?

2 Answers   NIIT,


What is the purpose of '@keyproperty'?

0 Answers  


why we are using vo,dao and dto design patterns in struts framework

3 Answers   Wipro,


Hi i am murali.i need a excellent answer for the question Tell me about project and project flow ? i mean it is use full to any project,it is on STRUTS

2 Answers  


What is http redirect?

0 Answers  


What inbuilt themes are provided by struts2?

0 Answers  






Categories