I have read every article on SYNCHRONIZE and I have one hopefully easy ques

Hi,
All my updating/deleting/inserting is done in session beans. My question is with updating. When i update database record, does the method have to be synchronized or not.
Isnt it true that it is not possible to lock a record twice? If a record is being updated, isnt is automatically locked?
Say to users sign in as JOE. One user changes his last name to BLOW and the other user signed in as JOE changes his last name to DOE. Both users press update at the exact same time. Well there is no exact time right? Whatever one hits the method last, get his last name in the file, in the end anyhow.
Since all my beans are in session, isnt it already threadsafe?
Thanks for your time and I hope that I am making sense.
P.S. - I am using oracle database just in case that can help.
Adam

Say to users sign in as JOE. One user changes his last
name to BLOW and the other user signed in as JOE
changes his last name to DOE. Both users press update
at the exact same time. Well there is no exact time
right? Whatever one hits the method last, get his last
name in the file, in the end anyhow.Yes, this is true.
Since all my beans are in session, isnt it already
threadsafe?I don't know if your beans are threadsafe, but let's assume they are. All that means is that the end result will be consistent. If A updates the database and then B updates the database, the end result will be what B did and not something else. It doesn't matter whether the updates were 10 minutes apart or 10 microseconds apart. "Threadsafe" has nothing to do with record locking; threadsafe just ensures that the Java processing doesn't mix the result of two threads. Database record locking is a different issue entirely, so you may have to start reading articles about that next.

Similar Messages

  • Windows media Player suddenly can't read some of my MP3, and only with one user account !!!

    Hi!
    here is my problem:
    I have a lot of MP3 in my W7 personnal computer at home. I read MP3 everyday with WMP and all was working fine, until some days ago. Some of my MP3 can't be read by WMP. I've looked at their properties, but there is nothing wrong, compared to others
    MP3 that I can read.
    The "unreadable" files are correctly read by VLC. So they are not corrupted.
    When I swtich to an other user, the same MP3 are read correctly with WMP. (Both usersd are admins)
    My MP3 are présents on two computers at home. When I connect from my second computer with a
    \\computername\c$, I can read these files. So the files are definitivly OK. But when I connect from my first computer to the second one, I can't read the MPS that have the same name! it's absolutely strange!
    I've tried to uninstall WMP, to delete all files related to WMP in my Appdata folder, I have even tried the FixIt from Microsoft, but any of these steps were helpful.
    I've copied the "unreadable" files from the Music folder to my desktop, allways the same issue.
    I've disabled my Antivirus, but without any results. I've tried the system restore, idem.
    My computer is running W7 32 bits, SP1, all updates installed regularly.
    Please help me, I want to understand what has happened!!! :)

    Hi Yolanda,
    the error message is inside a popup: (French trnaslation) "Windows media Player encountered an error and will close." I have the choice beetween "CLOSE" and "HELP ON THE WEB".
    Of course the "help" is totally useless....
    I don't see any troublshooter related to "media player". The only troubleshooter where I can choose Media player is for the "compatibility mode", so it's not helpful. On the "audio and devices" troubleshooter I see "read
    a DVD with Windows Media Player", but that's not my case.
    I've already done the last step. I copy the MP3 from my second computer to the "problematic" one, and I can't read my file. But, on the second computer, i can read this MP3 so the issue is ONLY when I try to read this file with my Windows session.
    (in the same computer, with the administrator session, I can read all the files).
    To put it in a nutshell:
    on computer A logged as CEDRIC i can not read the mp3 called SUPERSONG (it's an example lol)
    on computer A logged as administrator, I can read the SUPERSONG
    on computer B logged as CEDRIC (other local account but same name) I can read the SUPERSONG mp3 that is present in the music Library (that is not the same file, but it's a file with the same name, and of crouse this is the same song). (all my MP3 are copied
    from computer A to computer B in case of failure on one of the computers)
    on computer A logged as CEDRIC, if I do a
    \\computerB\c$\...\SUPERSONG I can not read it.
    I know this is complicated to explain, but if I ask to the Microsoft community that is because I don't know what to do ;) ;) ;) 

  • I downloaded later software for my Ipad so i coudl watch a film. I backed up using itunes on my new computer. All going well until i tried to restore all it says is you have 5 computers so have read every article and tried everything

    I downloaded later version of IPad software to watch a film. I backed up on itunes. All going well until i try to restore from itunes and all it says is you have used 5 authorisations. I've tried deauthorising and it then says I have been successful and now i have 0 computers authorised. I have two apple ID's so tried both. I cant locate anywhere it says deauthorise all. i've followed all help instructions to the letter over and over again. I am going on holiday thursday and cant get anything on my IPAD other syncing with Itunes but then on computer screen says cant sync unless deauthorise one of your 5 computers. Nightmare. I've spent hours since sunday and no further forward. Anyone any clues?

    Hello EricaLock
    There are a few restrictions when it comes to deauthorize all option. One of them is that there has to be at least 2 accounts signed in. Another option is that you can only deauthorize all once a year. Check out the article below for more information and if you are still stuck, there is an option for further assistance with contacting the iTunes Store for support.  
    iTunes Store: Authorize or deauthorize your Mac or PC
    http://support.apple.com/kb/ht1420
    Regards,
    -Norm G.

  • I read an article in the paper today re the virus that locks off I-phone and I-pads, I have an iMac and an iPad 4. Is there a danger of this happening and if so how do I prevent it? Many thanks, Roger Biggin.

    I read an article in the paper today re the virus that locks off I-phone and I-pads, I have an iMac and an iPad 4. Is there a danger of this happening and if so how do I prevent it?
    Many thanks, Roger Biggin.

    You may be referring to the "Oleg Pliss" hack (not a virus), in which some people (mostly in Australia and New Zealand) have had their Apple IDs hacked and used to remotely lock their iOS devices. If that's what you read about, be sure that you are using a strong password on your Apple ID, and consider enabling two-factor authentication on your Apple ID to make it difficult or impossible for a hacker to take it away from you.
    If you live in Australia or New Zealand, it may be worthwhile to turn off Find My iPad on your iPad, at least until the cause of the problem has been determined. Of course, that reduces the protections against theft. You'd be better off to just make sure you're keeping the iPad backed up, so you can restore it if it happens to get locked.
    If this isn't the story you read about, we'll need more details about what the story said.

  • HT204407 "Location Not Available" label for one friend and they have the same result for finding me. The issue has not been resolved from reading this article.

    I always get 'Location Not Available' for one of my contacts in the Find My Friends app. This same friend get's the same message when trying to find me. The app and the iOS software on both iPhones is up to date, the dates and time on both iPhones are correct and both iPhones are in the UK where the Find my Friends service works fine.
    There is one condition in which we can see where each other is and that is by having the app open on both phones, this is unlike all my other  contacts within the Fnd my Friends app where I can see where they are despite the app not being open on their devices. Can anyone help? It's really bugging us.

    For those who are experiencing ongoing issues with their web services, you can attempt to try the following steps that may
    help resolve your problems.
    1.) Completely shut down your printer and restart it
    2.) If you have prints that have not printed, log into ePrint Center (or create an account if you do not have one) and
    then look for your printer status. If printer status is green but you still have pending jobs, delete the pending jobs one at
    a time (Starting with the oldest first). There may be a print job stuck in the queue that further restricts other jobs from
    completing.
    a. If option 1 or 2 above still doesn’t work, removing web services and re-adding web services will cause the printer to
    reattach to the cloud.
    b. Please note that if you attempt option 3, you will get a new eprint email address (and lose your custom one with no
    ability to get it back) furthermore, you will need to re-add your printer back to your ePC account.
    I am an HP employee

  • Hi, i am having an issue with a basic motion scroll effect.  I already watched and read every tutorial out there regarding this topic and even tried the adobe chat support, but the guy on the other end of the line disconnected me-, probably he didn't unde

    Hi, i am having an issue with a basic motion scroll effect.
    I already watched and read every tutorial out there regarding this topic and even tried the adobe chat support, but the guy on the other end of the line disconnected me…, probably he didn't understand what i wanted from him because english is not my native language, so a will try to be very, very clear about this one..
    please note, that i am new to muse, this is my first project ever.
    my idea is as following:
    when the customer comes to our companies site, he just sees our logo on a white Background. the logo consists of, say, four elements. when the customer scrolls down, the logo starts to disassamble: first the first part of the logo flies out the left side of the site, then the second part of the logo vanishes down, then the third part of the logo flies to the right, then the fourth part of the logo flies to the top and out of the customers view. given what i have seen, it is possible to do that….
    so…..
    now i have the four parts of my logo imported as png files into muse and assembled them in design view to build our companies logo. I select every one of the four parts and go into the scroll effects tab left beside the layers tab. first i enter the same values for every one of the four parts: initial motion: 0x and 0x again for the left and right motion; key position ( t-handle) : 0px; final motion: 0x and 0x again for the left and right value.
    now i hit "preview".: the logo is "pinned" at the correct position, i can scroll but the logo stays where it is. so far so good….
    now i select all the four elements again and go to the scroll effecs tab. at "final motion", i click the down arrows and enter 1x. I hit Preview…
    when i am scrolling down the WHOLE logo goes down…. so far so good.
    NOW i want the first part of the logo to go down, THEN the second part to go left, THEN the third part to go up, THEN the fourth part to go right.
    so i select ONLY the first part, go to the scroll motion tab, at "final motion" i click the left arrows, then i enter 1x.( the up-down value, i set to 0 again).. i hit Preview…
    the first part of the logo goes left as soon as i start scrolling, the other three parts still go down at the same time…
    NOW i want the second part of the logo to start moving, when the first part has left the scene, not at the same time as the first part.
    SO I SELECT THE SECOND PART AND DRAG ITS T-HANDLE (KEY POSITION) DOWN TO, LETS SAY, 200PX. SO IT STARTS MOVING ONLY AFTER THE CUSTOMER HAS REACHED THAT POINT, RIGHT?
    BUT WHEN I PREVIEW THAT ****, THE LOGO IS NOT TOGETHER ANYMORE, THE SECOND PART IS FLOATING ANYWHERE ELSE BUT WHERE IT SHOULD BE…..WTFF????
    short: when i move the t handle, the initial position of the object changes. thats what i said to the adobe employee, but he said, that thats the expected behavior….
    but if thats so, how can i have my four parts correctly together, so they form my logo, but with different t handles, so that they all start to move at different times??
    Pleeease help me, i am dying of frustration here…..:( that behavior cant be right, right?
    Thanks so much to everyone who actually reads this post and tries to help…….
    All the best,
    Niki Lapan

    Thank you so much for helping,
    But i really wonder how you did that. did you always switch between design view and preview view, then change the key position for 2px then switch back, to align the four letters? because i imagine that can get really frustrating, if you have a logo consisting of 58 parts instead of 4!:)
    Anyway thank you very much for your time and effort!!!!

  • I keep receiving this error every time I open LR, "Lightroom encountered and error when reading from its preview cache and needs to quit" and the app won't open. It said LR would try and fix this error next time I opened it but the error remains. I tried

    I keep receiving this error every time I open LR, "Lightroom encountered and error when reading from its preview cache and needs to quit" and the app won't open. It said LR would try and fix this error next time I opened it but the error remains. I tried uninstalled and installing the app and the error remains. I have windows 8. Can anyone please help???

    Use Windows Explorer to open the folder containing your catalog. The normal location is Pictures\Lightroom. Locate a folder with the extension .lrdata and delete that folder. Then you should be able to start Lightroom again, and Lightroom will begin building and new previews folder. Do not delete anything else.

  • HT4623 My Ipad is saying that i need to type in a Sim code to unlock, but i do not know what it is...I have tried every code i could think of and also the one that it originally was when i received my Sim. How do i unlock my ipad or change my sim pin?

    My Ipad is saying that i need to type in a Sim code to unlock, but i do not know what it is...I have tried every code i could think of and also the one that it originally was when i received my Sim. How do i unlock my ipad or change my sim pin?

    Hi Mikki.J.H,
    Thanks for using Apple Support Communities.  This article has some information regarding SIM PINs that may help:
    iOS: Understanding the SIM PIN
    http://support.apple.com/kb/ht1316
    Cheers,
    - Ari

  • I plugged my iphone in for the first time to my itunes account and it now reads that this device is already  associated with an apple id.  what does that mean.  i only have one apple id. and do i chose cancel or transfer?

    i plugged my iphone in for the first time to my itunes account and it now reads that this device is already  associated with an apple id.  what does that mean.  i only have one apple id. and do i chose cancel or transfer?

    Hello there, Shellywms09.
    The following Knowledge Base article points out why you are receiving that message on your iPad:
    iTunes Store: Associating a device or computer to your Apple ID
    http://support.apple.com/kb/ht4627
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro

  • Every time I try and open up my itunes it will get stuck on lode. I am not able to click on anything or close down the page. I have to restart my computer. I have a new ipod and can't even downlode my music or watch my movies! what is going on?

    Every time I try and open up my itunes it will get stuck on lode. I am not able to click on anything or close down the page. I have to restart my computer. I have a new ipod and can't even get my music on it or watch my movies! what is going on?
    A box will pop up and tell me there is a new version of itunes to download, but i'm un able to click on that either

    Hi Coreenfrombc,
    If you are having issues with iTunes after an attempted update, you may find the following article helpful:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Regards,
    - Brenden

  • Hello, i'm using Iphone 5, with ios 7  . I have one old macbook, working with mac osx 10.6.8 and itunes last version updated. Itunes do not synchronize new contacts from my Iphone to my adress book mac.  What can i do ?

    Hello, i'm using Iphone 5, with ios 7  . I have one old macbook, working with mac osx 10.6.8 and itunes last version updated. Itunes do not synchronize new contacts from my Iphone to my adress book mac.  What can i do ?

    Hello, i'm using Iphone 5, with ios 7  . I have one old macbook, working with mac osx 10.6.8 and itunes last version updated. Itunes do not synchronize new contacts from my Iphone to my adress book mac.  What can i do ?

  • I am recording with Logic Pro X, using my Yamaha XS8 keyboard as a Midi controller. I also have a Thunderbolt Display. Every time I play and release a note on the keyboard, the Thunderbolt Display speaker emits a doink sound. How do I get it to stop?

    I am recording with Logic Pro X, using my Yamaha XS8 keyboard as a Midi controller. I also have a Thunderbolt Display. Every time I play and release a note on the keyboard, the Thunderbolt Display speaker emits a doink sound. What is causing it and how do I get it to stop? My sound is running through the Saffire Pro 40 Interface (Focusrite) into external speakers with powered amps.
    Also, When I record I am hearing little pops in the system. I have checked all of my meters and they are not clipping. What is causing it and how do I get it to stop?
    Ken

    MUYconfundido wrote:
    Pancenter,
    Thanks for the response, but I do not have a midi interface. I am using a midi to usb connector cable, thus bypassing the need for a Midi interface.
    The Mac reads the USB cable as a midi device, but not the keyboard that I am trying to use as a controller. I have tried it with my korg sp 300 and with my Nord Electro 2.
    Thoughts?
    Thanks,
    Tristan
    Tristan...
    This is what you have, correct?
    http://www.alesis.com/usbmidicable
    This from Alesis..
    "The AudioLink Series USB cable receives and outputs MIDI signal thanks to its internal interface. The USB-MIDI Cable connects plug-and-play to your Mac or PC for an all-in-one USB-MIDI solution."
    Notice, -internal interface-. What you have is a simple USB MIDI Interface. Most MIDI interfaces are USB.
    My point is (was), MIDI OUT of the Korg goes to the connector marked MIDI IN on the Alesis, those new to MIDI often get this wrong.
    pancenter-

  • Hi, I have just loaded Lightroom 5 from the disc onto my Mac.  every time i try and launch the application, it goes to the registration/licence window.  i have input the data five times already.  When Lr5 launches the update window appears, when i try to

    Hi, I have just loaded Lightroom 5 from the disc onto my Mac.  every time i try and launch the application, it goes to the registration/licence window.  i have input the data five times already.  When Lr5 launches the update window appears, when i try to do anything the following message comes up: - An error occrred when attempting to change modules.  What do i need to do to fix this?

    Masher please use the uninstaller located in the Applications/Utilities/Adobe Installers folder.  Once Photoshop Lightroom is removed then please download Lightroom 5.5 from Adobe - Lightroom : For Macintosh : Adobe Photoshop Lightroom 5.5 and reinstall.

  • I am trying to set up my college email on my phone, but it says it can't verify my account. I have tried just about every server name possible and I don't know what to do. Help?

    I am trying to set up my college email on my phone, but it says it can't verify my account. I have tried just about every server name possible and I don't know what to do. Help?

    Yes. Check your student manual or contact your help desk.

  • Superdrive has stopped reading DVD's, replaced drive and have same issue

    Hello,
    My G5 2.0 superdrive has been acting up for quite some time however it stopped mounting any DVD media from Movies to Apple OS Install DVD's. It reads CD's, both commercial and burnt. Every blue moon it will actually read a DVD but it is becoming few and far in between.
    To make things even more interesting, I replaced the drive on my main machine with the identical perfectly working drive from my other G5 and I am still experiencing the same issue. The other machine reads just DVD's just fine with both drives.
    I believe this is caused from software updates from what I've been reading around the web. I would like to hope that this is simply a preference that needs deleted or something that can be resolved quickly. Any suggestions would be greatly appreciated. Thanks.

    I am having the same problem which has been getting worse. I put in a DVD, the drive makes sounds as if it is getting ready to read it, but then just keeps making the same sounds over and over. The disk will speed up and then down. Every so often it will "catch" and read the DVD.
    This is frustrating because I have the install disks for Leopard sitting on my desk but I can not install it. If I do get it to read the disk once, it asks me to restart and then will not read the disk the start the install, ejects the disks and boots back to 10.4 from my hard drive.
    CD read and write just fine, no problem.
    Has anyone solved this problem?

Maybe you are looking for

  • How to determine the version of Identity  Manager 9.1 with the build number

    Friends, I have a query this compilation of Identity Manager that show below that corresponds Identity Manager version: 9.1.0.1, 9.1.0.2 or 9.1.0.3 As I can determine this information. Diagnostic Dashboard System Information: Application Server: JBos

  • How to install OS X 10.5 on iBook G4?

    I am having trouble installing OS X 10.5 on my iBook G4 it currently runs OS X 10.4.11 I put the disc for Leopard in my external cd/DVD drive and the window comes up to install, I click that then the window comes to to restart to start the installati

  • Getting Chained Rows with SQL-Loader

    Hi, I'm getting chained rows when loading data into an empty table. I always thought this could only happen when updating rows in a table. I'm loading into a datawarehouse, so I set the pctfree and pctused to use as much of the data blocks as possibl

  • Compare data between two tables of same schema

    Folks, I have one very intresting query which i would like to share with you all and looking forward for the solution asap. Scenario I have two table say TableA and TableB, both having same structre say as below TableA Col1 Var(10) Col2  INT TableB C

  • Server can't see itself on network, other devices can

    When I create a Network user either using Server app or Workgroup manager home folder is not created. I started digging and I found that all devices on the network can see and access server's afp, but server can't see itself on network. On everyone's