<div dir="ltr">Hi,<div><br></div><div>Based on TaskManager used for scripting tasks, I have implemented deployable server (Java) tasks.</div><div><br></div><div>Having cache configured this way: [1], Anna has written a test which checks if keys and values in the cache need marshalling or not and reported that this doesn&#39;t work as expected.</div><div><br></div><div><br></div><div>After some investigation I found out, that if I acquire cache via cacheManager (e.g. taskContext.getCache().get().getCacheManager().getCache()), the instance operates on proper values (in other words, keys and values don&#39;t need marshalling/unmarshalling).</div><div>In the case of taskContext.getCache().get(), keys and values need to be processed by Marshaller.</div><div><br></div><div>The cache behind both seems to be the same, a value put in one of them is visible in both.</div><div><br></div><div>I would really appreciate some tips how to solve it.</div><div><br></div><div>The test uses RemoteCacheManager#getCache().execute(...) to execute the task.</div><div><br></div><div>Thanks,</div><div>Michał</div><div><br></div><div><br></div><div><br></div><div>[1] <a href="https://github.com/infinispan/infinispan/blob/master/server/integration/testsuite/src/test/resources/config/infinispan/customtask.xml">https://github.com/infinispan/infinispan/blob/master/server/integration/testsuite/src/test/resources/config/infinispan/customtask.xml</a></div></div>