On Tue, Mar 10, 2015 at 8:39 AM, Scott Marlow <smar...@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.
_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to