The Artima Developer Community
Sponsored Link

Java Buzz Forum
Concurrency in DAO

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Nanik

Posts: 16
Nickname: nanik
Registered: Jun, 2003

Seasoned Contractor for J2EE
Concurrency in DAO Posted: Jul 29, 2003 1:56 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Nanik.
Original Post: Concurrency in DAO
Feed Title: Nanik's Weblog
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: Java, J2EE, Open Source, Cafe and other
Latest Java Buzz Posts
Latest Java Buzz Posts by Nanik
Latest Posts From Nanik's Weblog

Advertisement
Today we had a discussion on how to handle concurrency in our DAO. In the user requirement it is possible for the user to open multiple windows while doing different operation - for example the user while editing the invoice and billing for the customer is opening another window to add new account in the account master as well as new business partner data, in this scenario all the transaction of all the windows must not be nested or in other words if one of the operation of the window fails or success it should not impact the other windows. We came to a conclusion that once a connection is open and if you use the same connection for all the windows, a single rollback and commit will destroy the other operation. We came to a conclusion that we need to open a separate connection for all the different update operation. So if the user open 5 window and perform update operation then we have 5 open connection, I know it's not that very wise considering there are other alternative such as JTA but because of the issues that we have with iPlanet 6.5 we are very hesitant to use this as we are concern that there might be problem during production. If anybody have any better idea, please feel free to drop me a line or two to my email

Read: Concurrency in DAO

Topic: Eckel on Programmers Previous Topic   Next Topic Topic: Re: More Info On FreeRoller Performance Problems

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use