deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matej Novotny <manov...@redhat.com>
Subject Re: Transactional events
Date Mon, 02 Jan 2017 08:53:19 GMT
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" <dave@oxleyws.com.au>
> To: users@deltaspike.apache.org
> 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 <johndament@apache.org> wrote:
> 
> > What version of weld are you using?
> >
> > On Dec 31, 2016 21:02, "Dave Oxley" <dave@oxley.email> 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.
> > >
> >
> 

Mime
View raw message