Is this a race condition (i.e. the database transaction is committed if you wait a second or two), or is the transaction ultimately failing and being rolled back? If it's not the former, fix that problem (whatever it is) first.
Tim On Sat, Jul 31, 2021, 2:25 AM Ben Pirt <b...@madetech.com> wrote: > We're modernising an existing enterprise Java application that relies on > XA. It is a message oriented architecture and we're finding race conditions > are occurring sporadically. > We receive a message into a Message Driven Bean, interact with the > database and then fire off another message to another MDB that expects data > to be in the DB, however because it's not all wrapped up in one transaction > the data isn't there when the second MDB starts processing, so it blows up. > > Hope that makes sense! > Cheers, > Ben > > > On 30 Jul 2021, at 22:42, Justin Bertram <jbert...@apache.org> wrote: > > > > What behavior do you expect versus what you actually observe? In other > > words, what exactly isn't working? > > > > Also, what is your XA use-case? > > > > > > Justin > > > > On Fri, Jul 30, 2021 at 4:33 PM Ben Pirt <b...@madetech.com> wrote: > > > >> Hi Justin, we're using JCA with the resource adapter. > >> > >> We've defined the RA, the Queue Connection Factory and the Activation > Spec > >> in the server.xml configuration file. > >> > >> Cheers, > >> Ben > >> > >>> On 30 Jul 2021, at 22:28, Justin Bertram <jbert...@apache.org> wrote: > >>> > >>> I'm not too familiar with Open Liberty. Can you be more specific about > >> how > >>> you're attempting to integrate? Are you using plain JMS or JCA via the > >>> ActiveMQ resource adapter? > >>> > >>> > >>> Justin > >>> > >>> On Fri, Jul 30, 2021 at 7:38 AM Ben Pirt <b...@madetech.com> wrote: > >>> > >>>> Hello all, > >>>> I wonder if anyone might be able to help us out - we're trying to use > >>>> ActiveMQ with Open Liberty but we're struggling to get it using the XA > >>>> version of the Queue Connection Factory - does anyone have any idea > how > >> we > >>>> might be able to get XA working on this platform? All help > appreciated! > >>>> Thanks, > >>>> Ben > >>>> > >>>> > >> > >> > >