[hibernate-dev] JTA synchronizations on WildFly

Steve Ebersole steve at hibernate.org
Tue Mar 10 11:32:48 EDT 2015


On Tue, Mar 10, 2015 at 8:39 AM, Scott Marlow <smarlow at redhat.com> wrote:
>
>
> I believe that your workaround, mentioned below, of using
> JtaPlatform#registerSynchronization() on WildFly, is registering your
> synchronization as interposed via the TransactionSynchronizationRegistry
> [2]. There might be a way to register a sync callback at the Hibernate
> session level (which would also run as interposed sync on WildFly).


If you register syncs via the Hibernate Transaction API
(session.getTransaction().registerSynchronization()) these will be kept
local to the Session.  They are then delegated to in response to all
transaction events, whether that comes from a Transaction API call or JTA
sync callback.


More information about the hibernate-dev mailing list