[infinispan-dev] Distributed Executors in write mode, need reference to Cache

Vladimir Blagojevic vblagoje at redhat.com
Tue Dec 20 08:23:13 EST 2011


On 11-12-20 9:54 AM, Sanne Grinovero wrote:
> On 20 December 2011 13:47, Manik Surtani<manik at 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!




More information about the infinispan-dev mailing list