0 Replies Latest reply on Oct 24, 2013 8:51 AM by George Y

    JBoss-as-7.1.1.FINAL infinispan FULL_XA transaction issue.

    George Y Newbie


      I am using JBoss-as 7.1.1 Final on an Ubuntu 12.4

      I'm using the preconfigured default cluster cache with added <transaction mode='FULL_XA'/>

      So the configuration fragment looks as this:

                  <cache-container name="cluster" aliases="ha-partition" default-cache="default">

                      <transport lock-timeout="60000"/>

                      <replicated-cache name="default" mode="SYNC" batching="true">

                          <locking isolation="REPEATABLE_READ"/>

                          <transaction mode="FULL_XA"/>



      Then when I try to put something in the cache within a transaction context the following exception is thrown:


      15:15:15,369 ERROR [org.infinispan.transaction.xa.XaTransactionTable] (http-- Failed to enlist TransactionXaAdapter to transaction: java.lang.UnsupportedOperationException (see full trace in the attachment)


      My code dealing with the cache follows:

      @WebServlet(name = "QueueSenderServlet2", displayName = "Queue Sender Servlet2", urlPatterns = {"/qs2"}, loadOnStartup = 1)

      public class Servlet2 extends HttpServlet {

        PrintWriter out;



      private EmbeddedCacheManager ecm;


        Cache cache;


        private UserTransaction ut;



        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

          try {

            out = response.getWriter();



            cache = ecm.getCache();


            cache.put(request.getParameter("name"), request.getParameter("value")); // ------> here the exception is thrown

            if (request.getParameter("rb") != null) {


              out.println("<br> Servlet Transaction rolled back...");

            } else {


              out.println("<br> Servlet Transaction about to commit...");



          } catch (Exception e) {


          } finally {




      When I create the EmbeddedCacheManager manually (i.e. with the native classes supplied by infinispan (ConfugurationBuilder, GlobalConfigurationBuilder))

      and specify the transaction attributes accordingly - there is no problem. The transaction commits successfully.

      So are you aware of any known clues for that problem?

      Oracle java 1.7.0_40 64 bit on an Ubuntu 12 machine.

      (The same happens on windows 7 64-bit machine)

      Best Regards