1 Reply Latest reply on Nov 1, 2006 12:40 PM by CathyM

    HibernateAssembler and Spring Framework

    mrbahr
      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. Re: HibernateAssembler and Spring Framework
          CathyM Level 1
          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.