static class ICCall implements IgniteCallable<Long> {
private static final long serialVersionUID =
4278959731940740185L;
@IgniteInstanceResource
private Ignite ignite;
@SpringResource(resourceName = "testService")
private TestService ts;
@SpringApplicationContextResource
private ApplicationContext ac;
private int affKey;
private String cacheName;
ICCall(int affKey, String cacheName) {
this.affKey = affKey;
this.cacheName = cacheName;
}
@Override
public Long call() {
log.debug("affKey: " + affKey + ", cacheName: " +
cacheName);
log.debug("beans: " +
Arrays.toString(ac.getBeanDefinitionNames()));
return ts.call(affKey, cacheName);
}
}
I am not able to get ApplicationContext by using
@SpringApplicationContextResource. So getting null pointer exception. Did I
miss something?
How one can use @SpringResource & @SpringApplicationContextResource in
IgniteCallable?
BR,
Ashish
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/