I'd like to use the Hessian (Java) serialization and need to create a SerializerFactory
with custom serializers (to handle BigInteger
). Can I create one of these and share it among threads?
If you look at the source code, then you can notice that SessionFactory stores created serializers in a HashMap, and HashMap is not a thread-safe object. There is an intresting post about it.
So, the answer to your question is "no".