среда, 13 июля 2011 г.

Hibernate 3.6.5 Final Configuration/Session Factory Serialization

Deserialization of session factory drops exception cause it can't be deserialized without name, because the there are only name/uuid stored. Thus Session Factory can't be serialized in common sense. Result of serialization is reference to JVM instance or JNDI resource.

readResolve method in SessionFactoryImpl. Set hibernate.session_factory_name in properties.

Комментариев нет:

Отправить комментарий