Github user andrei-ivanov commented on a diff in the pull request: https://github.com/apache/cxf/pull/273#discussion_r117438543 --- Diff: rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/JPAOAuthDataProvider.java --- @@ -213,6 +221,25 @@ public RefreshToken execute(EntityManager em) { }); } + protected void lockRefreshTokenForUpdate(final RefreshToken refreshToken) { + try { + execute(new EntityManagerOperation<Void>() { + + @Override + public Void execute(EntityManager em) { + Map<String, Object> options = Collections.emptyMap(); + if (pessimisticLockTimeout > 0) { + Collections.singletonMap("javax.persistence.lock.timeout", pessimisticLockTimeout); --- End diff -- options = ...
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---