7 Replies Latest reply on Jan 24, 2018 5:24 AM by pruivo

    Hot Rod Transactions

    mashama

      Any word on this yet? It's on the road map but I can't find any details about it. 

        • 1. Re: Hot Rod Transactions
          nadirx

          Hi,

          they will be added in Infinispan 9.0 (due in the autumn).

          However you can use scripts and tasks now to implemented "stored procedures" which run on the server and have access to the full embedded API, including transactions.

          • 2. Re: Hot Rod Transactions
            mashama

            Thanks for the update Tristan.  From a Java EE 7 client's perspective does this mean JCache operations in a remote server configuration will be transactional?  Right now I have an application running in WildFly with a embedded Infinispan configuration.  If I change to a remote Infinispan configuration with Hot Rod transactions will the client application behave the same as before?

            • 3. Re: Hot Rod Transactions
              nadirx

              Well, since JCache 1.0 doesn't mention transactions anywhere this behaviour is undefined. I guess you'd want the HotRod client to participate in an XA transaction ?

              • 4. Re: Hot Rod Transactions
                mashama

                Ah ... so it's quite possible that the transactional behavior isn't even working the way I assume it to be in embedded mode with JCache?  Right?

                • 5. Re: Hot Rod Transactions
                  nadirx

                  It all depends on what you want to do and what you expect

                  Bear in mind that not only doesn't the JCache spec say what the behaviour should be with transactions, it doesn't even specify what the behaviour should be in a cluster.

                  So, if you're talking about put, gets, removes, you should be fine, but for things like entry processors and readers and writers each implementation might behave differently.

                  • 6. Re: Hot Rod Transactions
                    alon3392

                    Hello,

                     

                    In the latest dev documentation for 9.2 it is still marked as not supported.

                    Will Hot Rod transactions not be supported in 9.2?

                    I do see however in the code on master branch a new code added for Hot Rod transactions...

                     

                    Thanks.

                    • 7. Re: Hot Rod Transactions
                      pruivo

                      Hi Alon,

                       

                      Unfortunately it wasn't introduced in time. The protocol and the server are updated to handle the transaction but none of the clients were updated on time.

                       

                      It will be supported in the next version.

                       

                      Cheers,

                      Pedro