You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was planning on adopting BeanPersistListener to execute side effects that only happen after a transaction is committed. The docs say that BeanPersistListener runs in a background thread, but doesn't provide many more details.
Is is a single thread for everything?
Is the threadpool configurable?
Is is a platform thread or a virtual?
How does it handle ThreadLocals or ScopedValues? I imagine at some point I'll have to do queries in this thread, but a lot of that in my system depends on the current user or current tenant that are stored in threadlocals. It looks like I can supply a BackgroundExecutorWrapper to copy that stuff over? Is it automatically picked up like the other listeners?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was planning on adopting BeanPersistListener to execute side effects that only happen after a transaction is committed. The docs say that BeanPersistListener runs in a background thread, but doesn't provide many more details.
BackgroundExecutorWrapperto copy that stuff over? Is it automatically picked up like the other listeners?Beta Was this translation helpful? Give feedback.
All reactions