As previously mentioned, there is some work to do in order to plug in Spring's IoC. We would lose some of the beauty of Actions having their components set without XML metadata. Also, for those people using the Hibernate Open Session in View pattern. See the mailing list discussion on why Spring is really suited for this and why that may be a good thing - http://sourceforge.net/mailarchive/message.php?msg_id=5769262 .
Cheers, matthew
On Wednesday, September 17, 2003, at 12:21 PM, Rob Rudin wrote:
Speaking of Spring... has anyone looked at combining Spring's Hibernate support with WW2? I'm currently doing this with WW1, haven't had a chance to switch to WW2 yet. But there seem to be some similarities to the components that Pat mentioned:
- HPM is analogous to Spring's HibernateTemplate - HibernateConfiguration is analogous to Spring's LocalSessionFactoryBean, which can be defined as a singleton in the Spring container, achieving the same effect as scoping it at the application level in WW2. - PersistenceAware is analogous to a "setHibernateTemplate" method that the Spring container would use
Note that the Spring container isn't necessary for any of this, it sounds like you could easily use HibernateTemplate and the LocalSessionFactoryBean in WW2. Spring's Hibernate support is very good, I'm just wondering if anyone's tried integrating it with WW2, or could that be part of Conductor?
Rob
---- On Wed, 17 Sep 2003, Matthew E. Porter ([EMAIL PROTECTED]) wrote:
FYI: I believe this is how the Spring Framework got started.wrote:
Cheers, matthew
On Wednesday, September 17, 2003, at 10:31 AM, Jason Carreirainterested
+1 to that... The code from the book looked good... You guyspracticesin contributing it (or at least the infrastructure bits)?
-----Original Message----- From: Matthew E. Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 11:29 AM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] hibernate/webwork2 bestNovember. When
Patrick: According to Wiley's website, the books is due insome similarwill this code be available? The code I sent Jason hasitinterfaces but I would prefer to "standardize" on one asLightbody wrote:would seem weird that Conductor is not based upon the same code (and practices) as the first book talking about integrating these.
Cheers, matthew
On Wednesday, September 17, 2003, at 10:22 AM, PatI
Glad you like it! Spread the word :)
I've used Hibernate + WebWork2 in a couple projects, andbook thatalways usedthe design that spawned from our (Mike/Joe/Ara/Mine) upcomingsupportinvolves writing Yet Another PetStore. Basically, we used the IoCcomponents.xml andoffered by XWork and the following:
* PersistenceManager interface * HibernatePersistenceManager class * PersistenceAware interface * HibernateConfiguration
The HPM class was scoped at _request_ scope inscoped atdepended on another component, HibernateConfiguration, that is_application_ level so that we can keep a singleSessionFactory around.
Hope that helps.
-Pat
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork