Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-2353

SequenceUtil may generate duplicate IDs in Load Balancing mode

    Details

      Description

      If Ofbiz is deploy on 2 servers in Load Balancing Mode
      SequenceUtil will generate duplicate IDs because synchronization is done at JVM level instead of doing it in DB.

      A good replacement implementation would be:
      org.hibernate.id.enhanced.TableGenerator

      But it would involve a dependency on Hibernate

      Philippe
      www.ubik-ingenierie.com

        Attachments

        1. OFBIZ-2353-AC.patch
          9 kB
          Adrian Crum
        2. OFBIZ-2353-AC.patch
          4 kB
          Adrian Crum
        3. OFBIZ-2353 SELECT FOR UPDATE solution.patch
          7 kB
          Jacques Le Roux
        4. OFBIZ-2353 SELECT FOR UPDATE solution.patch
          4 kB
          Jacques Le Roux

          Issue Links

            Activity

              People

              • Assignee:
                jacopoc Jacopo Cappellato
                Reporter:
                pmouawad Philippe Mouawad
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: