ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo Di Tommaso <paolo.ditomm...@gmail.com>
Subject Re: Ignite equivalent of @GridUserResource
Date Wed, 30 Sep 2015 14:00:46 GMT
I will try that.

Thanks,
Paolo


On Wed, Sep 30, 2015 at 2:39 AM, vkulichenko <valentin.kulichenko@gmail.com>
wrote:

> Hi Paolo,
>
> You can use node local map instead [1]. It's a per-node singleton storage
> that has standard ConcurrentMap API and can be used for any user resources
> (e.g., JDBC connections, pools, etc). You can inject Ignite instance to
> your
> job using @IgniteInstanceResource annotation and acquire the map with
> Ignite.cluster().nodeLocalMap() method.
>
> Let me know if it works for you.
>
> [1]
>
> https://ignite.apache.org/releases/1.3.0/javadoc/org/apache/ignite/IgniteCluster.html#nodeLocalMap()
>
> -Val
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Ignite-equivalent-of-GridUserResource-tp1524p1527.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Mime
View raw message