8000 Proper way to use the hibernate api inside keycloak event listener · keycloak keycloak · Discussion #13800 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

I think you may not need to add transactions manually.
Could you please try to remove this code?

session
      .getTransactionManager()
      .enlist(new AbstractKeycloakTransaction {

Just to call

session.groups().createGroup(realm, subgroup, group)

And it would wrap to the current transaction automatically.

If you want more details, please refer to this

public GroupModel createGroup(RealmModel realm, String id, String name, GroupModel toParent) {

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shayanarm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0