Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are the some useful annotations introduced in struts2?

974


Explain about token feature in struts?

979


Why is it called struts?

954


When it’s useful to use IncludeAction?

1015


What is the use of execAndWait interceptor?

1032


Explain struts?

1040


What’s the utilization of resource bundle properties file in struts validation structure?

1089


How long do struts last?

934


Which class is the Front Controller in Struts2?

981


How do struts work?

935


How many struts config file in a struts application?

922


Difference between html tags and struts specific html tags

900


What is the use of reset method of ActionForm class?

1033


When should be opt for struts framework?

1046


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

1025