Hi,
I needed to store my configuration object in a JNDI tree in
order to be able to access some meta information found
in the mapping files. Unfortunately, the JBOSS JNDI only
stores serializable object, so it did not work at first.
I have included a patch in the JIRA (HB-492) that makes the
Configuration Object serializable. Please, note that although this
works for me, I have not tested it enough to ensure that it works
in all cases. Specially, it will not work if you use a XML parser
whose Element implementation is not serializable (some classes
store Element objects). But I think some people can find it useful.
It would be nice if this patch would be the base to have a
Serializable Configuration object in Hibernate.
Regards.
|