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

How to use dispatchaction?

0 Answers  


Explain struts?

0 Answers  


Which interceptor is responsible for mapping request parameters to action class Java Bean properties?

0 Answers  


What is the different actions available in struts?

0 Answers  


What should be the name of xml file used for validation in struts?

0 Answers  






Explain about the process of functioning of the struts program?

0 Answers  


Explain the difference between plain-validator and field-validator in struts?

0 Answers  


struts 1.3 features?

1 Answers   Integra, Zensar,


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

0 Answers  


In struts, how can we access java beans and their properties?

0 Answers  


how to write uploadphoto in the insert update delete using struts? write code struts and jsp jdbc

1 Answers  


Can you explain the directory structure for a struts folder in brief ?

0 Answers  


Categories