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 are inner class and anonymous class?

0 Answers  


i have 500 jsps in my application,and i have same forward name for each jsp,so it lokks in strutsconfig.xml,from 1 to 500,but i want send 498 page directly,how can i cingigure my application

2 Answers   TCS,


explain the struts-configuration file?

3 Answers   TCS, Zoho,


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

0 Answers  


what is the disadvantage of struts frame work?

11 Answers  






How interceptor works in struts 2?

0 Answers  


What is the purpose of form-be tag in struct-config.xml?

0 Answers  


why we use struts in our web application , means what was drawbacks of servlet ...pls answer

1 Answers   IBM,


What does execandwait interceptor?

0 Answers  


Hai all.Can i develope Struts action class without execute(-,- ,-,-)method.Ifd it's possible plz provide some sample code.

3 Answers   TCS,


Explain how to work with error tags?

0 Answers  


What is the difference between validation.xml and validator-rules.xml files in struts?

0 Answers  






Categories