I am trying to create a class:
public class SecurityPriceDTOStore extends CacheStoreAdapter<Integer,
SecurityPriceDTO>{
with some resources taken from the Spring context. I tried multiple things
like:
@SpringResource(resourceName ="service") public transient String service;
@Autowired @Qualifier("dataSource") public transient MockDataSource
dataSource;
but no bean is injected. In the method call, if I do search the bean from
spring context, it is here:
context.getBean("service") returns me the expected value.
The store is registered like this:
CacheConfiguration secCache = new
CacheConfiguration("securityPriceCache");
secCache.setCacheStoreFactory(FactoryBuilder.factoryOf(SecurityPriceDTOStore.class));
List<QueryEntity> l = new ArrayList();
l.add(new QueryEntity(Integer.class, SecurityPriceDTO.class));
secCache.setQueryEntities(l);
secCache.setReadThrough(true);
config.setCacheConfiguration(secCache);
Do any one has some idea of why it is failing to inject the beam?
Thanks in advance
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/