Thanks Michaels. It worked for me. I enabled following loggers in my logback.xml
<logger name="org.avaje.ebean.cache.QUERY" level="DEBUG"/>
<logger name="org.avaje.ebean.cache.BEAN" level="DEBUG"/>
<logger name="org.avaje.ebean.cache.COLL" level="DEBUG"/>
<logger name="org.avaje.ebean.cache.NATKEY" level="DEBUG"/>
Logs shows that entity beans that I retrieve first time are put in cache. When retrieved again, I can not see sql query fired on DB. Meaning it must be retrieved from cache.
However, I got following warning:
Class "com.avaje.ebeaninternal.server.cache.CachedBeanData" cannot be written in binary format because it either implements Externalizable interface or have writeObject/readObject methods. Please ensure that all nodes have this class in classpath. To enable binary serialization either implement Binarylizable interface
ignite-core-1.5.0.final.jar containing Binarylizable.class is available in .ivy2 folder. However, it is not on build path. So, I can not implement this class on my entity. Can this be ignored?
Next, I want to test Clustered Ignite cache. I want to test cluster of 2 ignite server instances. Docs (http://apacheignite.gridgain.org/docs/cluster-config) says it is auto-discovered using TcpDiscoverySpi
.
Does that mean I can simply start my play+ebean+ignite application on 2 servers in my n/w and ignite client will auto discover both the ignite server instance?
Also, which deployment mode (private/isolated/shared etc) I should choose?
Thanks again.
Suraj