This content has been marked as final.
Show 2 replies
-
1. Re: Is It Possible To Externalize ConcurrentHashmap Object With Infinispan?
galder.zamarreno Jul 22, 2011 3:50 AM (in response to evpgud)Why does your externalizer use the MapExternalizer directly? There's no need to do that at all. Simply do:
@Override
public void writeObject(ObjectOutput output, ABCMarshalling object) throws IOException {
output.writeObject(object.getMap()));
}
@Override
public ABCMarshalling readObject(ObjectInput input) throws IOException, ClassNotFoundException {
ABCMarshalling hi = new ABCMarshalling();
hi.setMap((ConcurrentHashMap<Long, Long>) input.readObject());
}
End user Externalizers should not need to fiddle with internal externalizers, simply write your objects to the given ObjectOutput and read from the ObjectInput, and that's it
-
2. Re: Is It Possible To Externalize ConcurrentHashmap Object With Infinispan?
galder.zamarreno Jul 22, 2011 3:58 AM (in response to galder.zamarreno)I've just created an FAQ on this: https://docs.jboss.org/author/pages/viewpage.action?pageId=5931597