-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Remove note about Infinispan's Spring Boot Starter as it is not yet 3.0-compatible #32896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
To avoid the In summary, if you stick to Spring Boot's built-in Inifinispan support things should work. If you want to use Infinispan's Spring Boot support, you'll have to wait for it to be updated for Spring Boot 3.0. That's obviously not perfect but it's the best that we can do right now and I think it's better than having no Infinispan support at all for 3.0. |
I missed that there are I don't use Infinispan outside of these Spring Session samples, so I'm not really impacted by this, but it seemed like something that should be addressed in one way or another. The suggested documentation changes sound like a good compromise. |
After reviewing the current state of the documentation related to this, I think that instead of just removing the note completely, it might be a good idea to replace it with another note mentioning that Infinispan's Spring modules (that are still mentioned in Appendix F: Dependency Versions) don't have first-class support for Spring 6 and Spring Boot 3 yet and should be used with extra care (dependency replacements and potentially other workarounds). |
Infinispan was upgraded to
14.0.1.Final
in #32798.Unfortunately, this version of Infinispan does not appear to be fully compatible with Spring Boot 3.0. I ran into issues while upgrading a project of mine with various Spring Session samples.
The problem can be reproduced using
sample-httpsession-infinispan
subproject from vpavic/samples-spring-session/tree/infinispan. Running./gradlew :sample-httpsession-infinispan:check
results in a test failure with root cause of:This happens because
org.infinispan.commons.tx.lookup.TransactionManagerLookup
depends onjavax.transaction.TransactionManager
rather then the Jakarta equivalent.Also note that in order for
@EnableInfinispanEmbeddedHttpSession
to work at all, I had to provideMETA-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
myself and list involved auto-configuration classes, sinceorg.infinispan:infinispan-spring-boot-starter-embedded
still usesMETA-INF/spring.factories
.So in summary, there are (at least) following issues with managed version of Infinispan:
javax
namespace in components involved in support for Spring caching abstractionMETA-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
in modules that provide auto-configuration supportAt its core these are all Infinispan issues, but at the same time the outcome is that Spring Boot is basically managing dependencies that are not compatible.
The text was updated successfully, but these errors were encountered: