Hi Jeff,

Is BoConverter object serializable and is class present on all nodes?

You store configured with storeKeepBinary true, so store will receive
binary objects.
Why you need value class here? Binary object concept is to overcome a
requirement to have all value classes on server side.



On Tue, Oct 31, 2017 at 9:23 AM, Jeff Jiao <[email protected]> wrote:

> my factory is very easy, just override the create method and set
> attributes,
> please see the code below.
> In the cache store i use hibernate to get data from Oracle and convert it
> to
> binaryObject and then put into Ignite, so I make people can config their
> own
> converter and class.
> Thanks.
>
>
>
> import javax.cache.configuration.Factory;
> import com.pingan.pilot.ignite.converter.BoConverter;
>
> public class PIgniteCacheStoreFactory implements Factory {
>
>         private static final long serialVersionUID = -5644170676633747103L;
>         private BoConverter converter;
>         private Class valueClass;
>
>         @Override
>         public PDefaultIgniteCacheStore create() {
>                 PDefaultIgniteCacheStore store = new
> PDefaultIgniteCacheStore();
>                 store.setConverter(converter);
>                 store.valueClass = valueClass;
>                 return store;
>         }
>
>         public BoConverter getConverter() {
>                 return converter;
>         }
>
>         public void setConverter(BoConverter converter) {
>                 this.converter = converter;
>         }
>
>         public Class getValueClass() {
>                 return valueClass;
>         }
>
>         public void setValueClass(Class valueClass) {
>                 this.valueClass = valueClass;
>         }
>
> }
>
>
>
>
>
>
>
> btw, these 2 days, I am also seeing "Transactions in deadlock" for
> "ignite-sys-cache" in my client side log and prevent my client node to
> start
> up.. I saw other guys brought up this issues recently too..
> I will follow the progress..
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>



-- 
Best regards,
Andrey V. Mashenkov

Reply via email to