Hello,

what you most likely need is described in Weld docs[1].
Basically, you want to make use of our SPI (TransactionalServices) through 
which you register an implementation of javax.transaction.Synchronization.

Matej
____________________________________________________________-
[1] 
http://docs.jboss.org/weld/reference/latest/en-US/html/ri-spi.html#_transaction_services


----- Original Message -----
> From: "Dave Oxley" <[email protected]>
> To: [email protected]
> Sent: Sunday, January 1, 2017 3:32:49 AM
> Subject: Re: Transactional events
> 
> I'm using Weld 2.4.1.Final.
> 
> 
> On 1 January 2017 at 13:29, John D. Ament <[email protected]> wrote:
> 
> > What version of weld are you using?
> >
> > On Dec 31, 2016 21:02, "Dave Oxley" <[email protected]> wrote:
> >
> > > Hi,
> > >
> > > I'm writing a simple app with Deltaspike JPA, Hibernate and Weld
> > targeting
> > > Tomcat 8 which is working well. I need to setup an Event that is
> > > @Observes(during = TransactionPhase.AFTER_SUCCESS) but the event is
> > being
> > > received when it's fired rather than when the transaction commits. Is
> > there
> > > a way to set this up without going with a full J2EE container?
> > >
> > > Cheers,
> > > Dave.
> > >
> >
> 

Reply via email to