[infinispan-issues] [JBoss JIRA] (ISPN-3537) Custom interceptor with Position.LAST set programmatically doesn't work

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Mon Dec 9 05:12:05 EST 2013


    [ https://issues.jboss.org/browse/ISPN-3537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12929421#comment-12929421 ] 

RH Bugzilla Integration commented on ISPN-3537:
-----------------------------------------------

Jiri Holusa <jholusa at redhat.com> changed the Status of [bug 1024414|https://bugzilla.redhat.com/show_bug.cgi?id=1024414] from ON_QA to VERIFIED
                
> Custom interceptor with Position.LAST set programmatically doesn't work
> -----------------------------------------------------------------------
>
>                 Key: ISPN-3537
>                 URL: https://issues.jboss.org/browse/ISPN-3537
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 6.0.0.Beta1
>            Reporter: Jiří Holuša
>            Assignee: Mircea Markus
>              Labels: 620
>             Fix For: 6.1.0.Final
>
>
> When configuring cache programmatically, adding a custom interceptor with position set to Position.LAST cause not calling this interceptor.
> Code sample:
> {code:borderStyle=solid}
> EmbeddedCacheManager manager = new DefaultCacheManager();
>       Configuration c2 = new ConfigurationBuilder()
>             .customInterceptors()
>                .addInterceptor()               .position(InterceptorConfiguration.Position.LAST).interceptor(new MyInterceptor())               
>             .build();
>       manager.defineConfiguration("interceptors", c2);
>       Cache<String, String> cache = manager.getCache("interceptors");
>       cache.put("hello", "world");
> {code}
> MyInterceptor is very simple, reacting to all events. When changing to Position.FIRST, everything works fine. Also tried two/three interceptors, various combinations, but always with same result - when position set to Position.LAST, interceptors is not called.
> Note that no problem when setting by index().

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list