try to inject yourself and call it, it will work. If you dont go through the proxy you dont get CDI features ;)
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2015-12-28 16:36 GMT+01:00 sgjava <[email protected]>: > Consider the following: > > @CacheRemove > public void remove(@CacheKey final String key) { > log.info(String.format("Removing key: %s", key)); > } > > public void removeLocal(final String key) { > remove(key); > } > > Calling remove from another bean works as expected, but calling method from > inside same class (removeLocal) fails. Complete example at > https://github.com/sgjava/jcache-tomee > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/JCache-annotation-not-working-with-local-method-tp4677321.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
