[ https://issues.apache.org/jira/browse/IGNITE-2448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15138270#comment-15138270 ]
Roman Shtykh commented on IGNITE-2448: -------------------------------------- Thank you, Denis! I have changed the code to work with beans. For that, I also moved CacheConfiguration bean from IgniteConfiguration's properties one level up in default-config.xml. It will force a user to have _config/default-config.xml_ however, so I initialize the default cache if template is not found. {code} CacheConfiguration cacheCfg = null; try { cacheCfg = (CacheConfiguration)factory.getBean("templateCacheCfg"); // overrides template cache name with the specified id. cacheCfg.setName(id); } catch (NoSuchBeanDefinitionException e) { // initializes the default cache. cacheCfg = new CacheConfiguration(id); } {code} If this is acceptable, I will proceed with PR and docs. > Ignite based second level cache for MyBatis > ------------------------------------------- > > Key: IGNITE-2448 > URL: https://issues.apache.org/jira/browse/IGNITE-2448 > Project: Ignite > Issue Type: New Feature > Reporter: Denis Magda > Assignee: Roman Shtykh > > MyBatis [1] has a concept of a second level cache. > It makes sense to implement a module that will allow to use Ignite as a > second level cache for this framework. > In particular the following has to be done: > - introduce ignite-cache module that will be located in MyBatis GIT > repository [2] > - implement MyBatis {{Cache}} interface [3] > - there should be configs inside of the module for different exemplary cases > (server node with a single local cache; server node that is a part of some > cluster and caches mybatis data in replicatred or partitioned cache; client > nodes that connects to the cluster and works with the cache); > - add documentation about the integration on Ignite readme.io > - as a reference you may refer to Hazelcast [4] or other implementation > More on caches in MyBatis > http://www.mybatis.org/mybatis-3/sqlmap-xml.html#cache > [1] http://www.mybatis.org/ > [2] https://github.com/mybatis/ > [3] > https://github.com/mybatis/mybatis-3/blob/master/src/main/java/org/apache/ibatis/cache/Cache.java > [4] https://github.com/mybatis/hazelcast-cache -- This message was sent by Atlassian JIRA (v6.3.4#6332)