4 Replies Latest reply on Jul 18, 2019 8:06 AM by Greg Brown

    Infinispan/Wildfly 17

    Greg Brown Newbie

      Is there a reason all of the Infinispan modules are private in Wildfly 17? I'd like to use the provided Infinispan support with Spring (via org.infinispan:infinispan-spring5-embedded), but because the APIs are private, I can't do so without getting a "private module" warning at startup.

       

      Thanks,

      Greg

        • 1. Re: Infinispan/Wildfly 17
          Paul Ferraro Master

          They are private because we do not make API compatibility guarantees across releases (major, minor, or micro).

          • 2. Re: Infinispan/Wildfly 17
            Greg Brown Newbie

            Sorry, I should have been more clear. I understand what a private module is. But can you comment on the Spring issue? Do you have any suggestions on how to cleanly use Infinispan's Spring library when all of the Infinispan modules in Wildfly are private? All of the APIs expect various Infinispan classes, which (because they are private) are not visible to my code.

            • 3. Re: Infinispan/Wildfly 17
              Tomaž Cerar Master

              As Paul said,

               

              all those modules are safe to use by your application, but such modules do not guarantee compatibility across versions of WildFly.

              or in more piratical terms, you get your application working with infisinspan that is shipped with WildFly 17, but lets say that hypothetically in WildFly 18, infinispan is upgraded to new major version that can have some breaking changes in comparison to infinispan shipped with WildFly 17.

              So you would need to be careful when upgrading version of WildFly if your app depends on specific versions of infisispan in said version of WildFly.

              Usually that just means you need to align shipped jars (like infinispan-spring5-embed) to match version to one provided in server.

              • 4. Re: Infinispan/Wildfly 17
                Greg Brown Newbie

                This is exactly what we have done - I was just wondering if there was a better way.

                 

                Thanks for your help.

                 

                Greg