ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juanavelez <jsjunkemai...@gmail.com>
Subject JCache and CacheManager.getCache
Date Tue, 03 Jan 2017 16:10:49 GMT
I am trying to obtain a Cache<Integer, MyObject> using JCache's
CacheManager.getCache("myCache", Integer.class, MyObject.class) but it fails
with a ClassCastException (can't convert from Object to Integer). The cache
is configured in an ignite configuration xml file, but I don't see a way to
set the types for the key and value. How is the correct way to obtain an
existing cache which has been configured using the spring/xml approach by
using the JCache api?

Thanks - J

View this message in context: http://apache-ignite-users.70518.x6.nabble.com/JCache-and-CacheManager-getCache-tp9847.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message