On 9/2/07, mettamara <[EMAIL PROTECTED]> wrote: > > > Great, well that explaappfuse-hibernate-2.0-m5.jarins why I couldn't find > it. > Thanks again :wistle:. > > I don't know if I should open up a new thread or if there is already a > discussion about this out there... but I was curious about the transaction > management implemented via the HibernateDaoSupport/HibernateTemplate. Does > anyone have any thoughts on its performance? Work well with Spring? Better > than managing the transactions on your own through the session?
It all depends on what you call "better" :-) Declarative transaction management has the great advantage that transactioning code does not pollute the business code in your managers. As per usual there are cases where it simply won't work and you need to manage the transactions yourself through direct interaction either with Spring or with the Hibernate session. As a rule I tend to use declarative tx management wherever I can - to date I have always managed to design my applications in such a way that I do not have to resort to in code management. Performance has never been the criteria in choosing transaction management implementation - every time I have had a bottleneck the problem has never been transactioning - it normally turns out to be some code/database optimisation problem, e.g. lack of index on a table. Lastly, is all Hibernate functionality accessible through extending the > GeneriDaoHibernate? (Just trying to debate the adv/dis of writing custom > Daos vs implementing the Generic). Yes. Mike. aaron > > > mraible wrote: > > > > It's in the root of appfuse-hibernate-2.0-m5.jar. > > > > Matt > > > > On 9/1/07, mettamara <[EMAIL PROTECTED]> wrote: > >> > >> Just getting started with AppFuse (fantastic job Matt & co). Had a > >> question > >> regarding the default struts2-hibernate-spring configuration. > >> > >> In the hibernate tutorial there is a reference to: > >> <property name="sessionFactory" ref="sessionFactory"/> > >> However, I cannot find where this bean is declared or wired. I saw > some > >> posts to add the bean declaration in the applicationContext.xml. > >> > >> Anyone have any tips for me on this? > >> > >> Thanks so much, > >> > >> aaron > >> -- > >> View this message in context: > >> > http://www.nabble.com/Where-is-sessionFactory-bean-configured--App2.0m5-tf4366333s2369.html#a12445519 > >> Sent from the AppFuse - User mailing list archive at Nabble.com. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > > http://raibledesigns.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Where-is-sessionFactory-bean-configured--App2.0m5-tf4366333s2369.html#a12446693 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
