Hi

2015-11-02 7:08 GMT-08:00 iannuz <[email protected]>:

> Hi,
>
> I am posting this message to pre-check the feasibility of what follows
> before wasting time configuring/testing it.
>
> I'd like to know if with this platform:
> - Tomee+ 1.7.2
> - ActiveMQ 5.12.1
>

We dont bundle this one but you can override our version to this one
without issues.


> - MySql 5.7
>
> something like this is possible or not:
> <http://tomee-openejb.979440.n4.nabble.com/file/n4676680/XATransaction.png
> >
>
> In words, the flow is:
> - A message reader (i.e. a MessageDriven bean) *reads from a queue* (1) and
> processes one message triggering:
>    - *one or more inserts/updates on a database* (2)
>    - a *put of a message to another queue* (3)
>
> (1)(2)(3) operations are all part of the same XA transaction controlled by
> Tomee, so under any circumstances they either all fail or all succeed.
>
> After a bit of searching I see that both MySql and ActiveMQ provide XA
> drivers and that tomee seems to be able to create transacted resources (via
> configuration in tomee.xml) made available, together with the
> transactionManager, to the JEE application via JNDI.
> So, on paper, it sounds feasible.. I'd just like someone with experience on
> this kind of things to confirm.
>
>
Doable, only pitfall/hard part with 1.7.2 is the XA config which needs some
tuning depending your structure and goal - we have an identified issue
fixed on next version for one of our pool. However very feasible.


> Thanks!
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Tomee-MySql-ActiveMQ-XA-Distributed-Transactions-tp4676680.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to