Can you show me a code snippet of what's not working? Also the error message/stack
trace you're getting?
afterCompletion is used mainly to invalidate the cache after the transaction has been
committed successfully, so there's shouldn't really be anything listed there.
----- Original Message -----
From: "Rodrigo Sasaki" <rodrigopsasaki(a)gmail.com>
To: keycloak-user(a)lists.jboss.org
Sent: Friday, 19 September, 2014 12:13:05 AM
Subject: [keycloak-user] Opening Transactions
Hello,
I have created some custom endpoints for my project, and in one of them I
need to use multiple transactions on a single request. I ran into some
issues, even though I call
session.getTransaction().begin()
It didn't work correctly saying that I didn't have an opened transaction. I
look a little deeper and saw that there are 2 lists of transactions inside
org.keycloak.services.DefaultKeycloakTransactionManager.
One is called transactions and the other is afterCompletion
when commit() is called, both lists are traversed committing every single
transaction in them, but when begin() is called, only the transactions list
is traversed, and the one I needed was inside afterCompletion , which
remained closed.
Is this supposed to be this way? I'm not sure what these lists do, but maybe
the other one should be opened too.
Is there a problem on opening the transactions on afterCompletion list as
well?
Thanks!
--
Rodrigo Sasaki
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user