You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by ekomarov <ek...@gridfore.com> on 2017/09/06 21:02:40 UTC
Cache classes deployment
Hello,
I have an ignite cache with custom classes in keys and values, like
IgniteCache<MyKey, MyValue> only on one ignite node. I want to read and
write data for this cache on all ignite nodes. I tried to use peer class
loading, but got a ClassNotFoundException on remote ignite nodes. Is it
possible to read and write data from cache without deploying my classes to
all nodes?
Thanks,
Egor.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Cache classes deployment
Posted by ekomarov <ek...@gridfore.com>.
Thanks for the reply, Val! Seems like for cache classes there is a choice
between binary cache structure and explicit class deployment.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Cache classes deployment
Posted by vkulichenko <va...@gmail.com>.
Hi Egor,
Peer class loading is not working for data model classes. You should either
deploy classes explicitly on all nodes, or use BinaryObject API:
https://apacheignite.readme.io/docs/binary-marshaller#binaryobject-cache-api
-Val
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Cache classes deployment
Posted by saikiran939 <sa...@gmail.com>.
Did you try https://apacheignite.readme.io/docs/binary-marshaller ?
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/