-
I have a quarkus and Kafka based application which is using Caffeine Cache manager here: https://github.com/mehab/DTKafkaPOC/tree/feature/vulnanalyzer-nativeBinary/vulnerability-analyzer I want to build a native binary of this module using graalvm. When I create the native executable and execute it, I am getting this error message from application run: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Typically in Quarkus you would use their cache abstraction and not jcache. That specification was largely a dud, but adopted by a few frameworks like hibernate so provided here. You can look at their tutorial for how to use it. Otherwise most likely the resources are not being bundled and discovered. Since that is likely using AOT it's a bit different than what I know, so for more help you would need to ask the Quarkus community. The jcache extension uses this config library where settings are typically in |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response. I'll try out the application.conf example from the unit tests you shared. I saw the quarkus cache abstraction as well but we wanted an implementation that was generic so that we could use a different cache in the future as well, as needed. But if the application.conf approach does not work then the quarkus cache abstraction would be the go to approach. Thanks again :) |
Beta Was this translation helpful? Give feedback.
Typically in Quarkus you would use their cache abstraction and not jcache. That specification was largely a dud, but adopted by a few frameworks like hibernate so provided here. You can look at their tutorial for how to use it.
Otherwise most likely the resources are not being bundled and discovered. Since that is likely using AOT it's a bit different than what I know, so for more help you would need to ask the Quarkus community. The jcache extension uses this config library where settings are typically in
application.conf
. You can see our unit tests if you want, but I think using Quarkus' cache is most likely the better approach (I don't recommend jcache, it has many footguns).