On 11-12-20 9:54 AM, Sanne Grinovero wrote:
On 20 December 2011 13:47, Manik Surtani<manik(a)jboss.org>
wrote:
> So you're suggesting that the task is registered as a CDI bean on each remote
node, so that requested services can be injected? Makes sense. But this would have to be
a part of infinispan-cdi, as an extension to what we have in DistExec. I presume this is
what you had in mind?
Yes.
Anyway a first step would be to provide a reference to the Cache, both
to DistExec and MapReduce tasks, this should be doable even without
introducing infinispan-cdi; but we need a cool proposal in terms of
API - especially if @Inject is not supported that makes it harder to
design.
Sanne
Makes sense! Note that implementors of DistributedCallable task in
distributed executors already receive Cache instance through API! We can
have Mapper and Reducer receive owning cache instance through API as
well! However, if it can be done through @Inject mechanism maybe that
would be better!