XA Transactions:  DB, Queue, and HTTP

Posted on 2014-08-15
Last Modified: 2014-08-18
I know that you can put queue get and put calls within an XA transaction (ActiveMQ).

I know you can put DB operations within an XA tx (Oracle)

Can you put HTTP request and HTTP response into an XA tx ?

Question by:Anthony Lucia
    1 Comment
    LVL 35

    Accepted Solution

    Can you put HTTP request and HTTP response into an XA tx ?
    Generally speaking, no!

    I could imagine that it is remotely possible that a specialised Web Service could be made to be XA-aware and provide additional web service methods to allow for that. But in the general case, no, the web service request would not be part of the XA transaction.

    This is not to say that there is NO interation between them, ie. if the web service request was to fail for some reason, then an exception would be thrown and the XA transaction would roll back, rolling back and JMS and/or DB calls. But the issue is if the web request were to succeed but then a subsequent JMS or DB call were to fail, then all the DB and JMS calls would roll back but the web service request would NOT roll back. Once the web service request completes successfully, that's it... there is no going back.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now