camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kowalewski (JIRA)" <>
Subject [jira] [Created] (CAMEL-8885) ConsumeLockEntity without ConsumeDelete
Date Thu, 18 Jun 2015 08:28:02 GMT
Daniel Kowalewski created CAMEL-8885:

             Summary: ConsumeLockEntity without ConsumeDelete
                 Key: CAMEL-8885
             Project: Camel
          Issue Type: Bug
          Components: camel-jpa
    Affects Versions: 2.15.2
            Reporter: Daniel Kowalewski

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...

This message was sent by Atlassian JIRA

View raw message