You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Ashish Paliwal (JIRA)" <ji...@apache.org> on 2011/09/19 10:06:09 UTC

[jira] [Assigned] (VYSPER-294) EhCachePresenceCacheImpl initialize CacheManager not use the configFile passed in

     [ https://issues.apache.org/jira/browse/VYSPER-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Paliwal reassigned VYSPER-294:
-------------------------------------

    Assignee: Ashish Paliwal

> EhCachePresenceCacheImpl initialize CacheManager not use the configFile passed in
> ---------------------------------------------------------------------------------
>
>                 Key: VYSPER-294
>                 URL: https://issues.apache.org/jira/browse/VYSPER-294
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.8
>         Environment: no special environment
>            Reporter: Zhang JinYan
>            Assignee: Ashish Paliwal
>              Labels: patch
>         Attachments: xmpp.patch
>
>
> 1、The EhCachePresenceCacheImpl has a constructor arg, which specify the configFile used to initialize a EhCache CacheManager,but didn't use it at last.
> Code:
>     protected void createCache(String configFile) {
>         if (configFile == null) {
>             configFile = DEFAULT_EHCACHE_CONFIG_FILE;
>         }
>         URL configFileURL = getClass().getResource(configFile);
>         if (configFileURL == null) {
>             throw new RuntimeException("ehcache configuration file ehcache.xml not found on classpath");
>         }
>         CacheManager.create();  //<============== Here i am!
>         presenceCache = CacheManager.getInstance().getCache(PRESENCE_CACHE);
>         jidPresenceCache = CacheManager.getInstance().getCache(JID_PRESENCE_CACHE);
>     }
> 2、dist/src/main/assembly/src.xml
> Didn't excludes .* file/folde in sub directory. If i use eclipse to import those projects, there will create .* files (eclipse project files,eg: .classpath)
>       <excludes>
>         <exclude>**/target/**</exclude>
>         <exclude>.*</exclude>
>         <exclude>.*/**</exclude> //<============== Here i am!
>         <exclude>**.bak</exclude>
>       </excludes>
> I upload my patch.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira