Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8885

ConsumeLockEntity without ConsumeDelete

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.15.2
    • 2.15.3, 2.16.0
    • camel-jpa
    • None
    • Unknown

    Description

      I think that condition at the beginning of the lock function is wrong:

      protected boolean lockEntity(Object entity, EntityManager entityManager) {
              if (!getEndpoint().isConsumeDelete() || !getEndpoint().isConsumeLockEntity()) {
                  return true;
              }
      ...
      

      If I wanna just select and then update entity I should set consumeDelete=false, but If so entity will newer be locked...

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            demenis Daniel Kowalewski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: