Hello guys,

just to share a dirty behavior we have in our AppInfo. Dirty here
"only" means hidden.

As a reminder our AppInfo should be Serializable.

But it contains PersistenceInfo...which container properties passed to
the EntityManagerFactory...so it contains often the ValidatorFactory.

This means our ValidatorFactoryWrapper and potentially classes linked
to it has to be Serializable as well.

We are quite lucky since most of the time we rely on jndi lookup here
so serialization is not that hard but we should take care to not break
it.

Where did I see it: it happens with hibernate validator pretty trivially.

Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau

Reply via email to