Expand my Community achievements bar.

HibernateAssembler and Spring Framework

Avatar

Level 2
Hi All,



I have a Spring FrameWork-based application. During
initialization, I create a hibernate sessionFactory that has all of
my configuration information. I'd like to be able to share the same
sessionFactory so I don't need multiple mapping files and
sessionFactory duplication. It appears as though there are no
methods either on the HibernateAssembler or HibernateManager that
would allow me to inject a sessionFactory.



Any thoughts? Maybe a future FDS enhancement?



Thanks,

Tom
1 Reply

Avatar

Level 2
The HibernateAssembler and the HibernateManager sample code
ships with FDS.

It's at
<install-dir>/resources/samples/assemblers/flex-messaging-dist-src.



It seems like you should be able to modify the
HibernateManager for your needs.

In particular, the createSessionFactory, getSessionFactory,
and getSession.



Let us know how that works out.