[
https://issues.jboss.org/browse/ISPN-3826?page=com.atlassian.jira.plugin....
]
Sebastian Łaskawiec commented on ISPN-3826:
-------------------------------------------
Hey [~jharting] [~pmuir]!
Could you please tell me what's your opinion from CDI point of view?
In short:
We use
[
InjectedCacheRemoveAllInterceptor|https://github.com/infinispan/infinispa...]
and similar classes to intercept JCache annotated methods (in this case annotated with
[
CacheRemoveAll|https://github.com/jsr107/jsr107spec/blob/c978d174bfc9b775...]).
Those annotations does not have {{@InterceptorBinding}} annotations and are placed in 3rd
party library for us.
Is it possible to intercept those methods and being compliant with CDI (1.0 or 1.1 in near
future) spec?
Thanks!
CacheResultInterceptor has no InterceptorBindingType
----------------------------------------------------
Key: ISPN-3826
URL:
https://issues.jboss.org/browse/ISPN-3826
Project: Infinispan
Issue Type: Bug
Components: JCache
Affects Versions: 5.3.0.Final
Reporter: Nicolai Mainiero
Assignee: Sebastian Łaskawiec
Priority: Critical
I'm migrating an enterprise application from JBoss AS 7 to WebSphere AS 8. We use
Infinispan as Cache via the JCache API. On JBoss everything works fine. On WebSphere we
get the following exception:
org.apache.webbeans.exception.WebBeansConfigurationException: WebBeans XML configuration
defined in file infinispan-jcache-5.3.0.Final.jar!/META-INF/beans.xml is failed. Reason is
: Interceptor class : org.infinispan.jcache.annotation.CacheResultInterceptor must have at
least one @InterceptorBindingType
I think the cause is that there is no InterceptorBindingType in the
CacheResultInterceptor as required by the specification
(
https://docs.jboss.org/cdi/spec/1.0/html/interceptors.html) and the CDI implementation of
the WebSphere (OpenWebBeans) does not accept Interceptors without bindings.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)