File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes  java synchronized- Account Update Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark " java synchronized- Account Update " Watch " java synchronized- Account Update " New topic
Author

java synchronized- Account Update

pradeep gamage
Ranch Hand

Joined: Aug 03, 2009
Posts: 85

in my project i have to update user account. in account table, there is a accountBalance feild. i have to update it asynchronized way. so I have used ExecutorService Java interface.



but some time accountbalance not update correct value. when i remove thread part its work fine. I haven't any idea how i can fix this matter. Please give me Your valuable idea to fix this issue.
Thanks in advance...


Software Engineer(BSC):SCJP 1.5
(Knowledge is power when applied)
Lanny Gilbert
Ranch Hand

Joined: Jun 11, 2002
Posts: 103
Please post more code.. This doesn't show us enough to help you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java synchronized- Account Update