1 Reply Latest reply on May 7, 2005 5:11 AM by Ulf Schroeter

    Instance per transaction entity bean and optimistic locking

    Suresh Vedachalam Newbie

      We had an application that used the default "standard bmp entity bean configuration" with pessimistic locking. The application used to hang and get into deadlocks frequently.
      The hang went away as soon as we shifted it to use "Instance Per Transaction BMP EntityBean" with NoLock. We are concerned though that this might result in concurrent update problems. My question here is:
      Is it legal to change the "Instance Per Transaction BMP EntityBean" configuration in standardjboss.xml to use optimistic locking to prevent possible concurrency problems? By default the standardjboss.xml uses NoLock for this configuration.