[jboss-jira] [JBoss JIRA] Closed: (JBCACHE-739) Exception in a CacheLoader throws ChainingCacheLoader calling method and prevent the call to the next CacheLoaders

Manik Surtani (JIRA) jira-events at lists.jboss.org
Wed Aug 1 14:37:02 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBCACHE-739?page=all ]

Manik Surtani closed JBCACHE-739.
---------------------------------

    Resolution: Done

> Exception in a CacheLoader throws ChainingCacheLoader calling method and prevent the call to the next CacheLoaders 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBCACHE-739
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-739
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Cache loaders
>    Affects Versions: 1.4.0.GA
>            Reporter: shimi k
>
> All the delegate methods in ChainingCacheLoader throws Exceptions. Each one of the methods iterates on all the configured Cacheloader. 
> public void put(Fqn name, Map attributes) throws Exception
>     {
>         Iterator i = writeCacheLoaders.iterator();
>         while (i.hasNext())
>         {
>             CacheLoader l = (CacheLoader) i.next();
>             l.put(name, attributes); 
>         }
>     }
> Since the methods throws an Exception, Exception in one of the CacheLoaders will throw the thread out of the method. If the Exception will happen before the last CacheLoader, the ChainingCacheLoader will not call the other CachLoaders.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list