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.
> 
> 
> Cheers,
>    matthew
> 
> On Wednesday, September 17, 2003, at 10:31 AM, Jason Carreira
wrote:
> 
> > +1 to that... The code from the book looked good... You guys
interested
> > in 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 best
practices
> >>
> >>
> >> Patrick:
> >>    According to Wiley's website, the books is due in
November.  When
> >> will this code be available?  The code I sent Jason has
some similar
> >> interfaces but I would prefer to "standardize" on one as
it
> >> 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, Pat
Lightbody wrote:
> >>
> >>> Glad you like it! Spread the word :)
> >>>
> >>> I've used Hibernate + WebWork2 in a couple projects, and
I
> >> always used
> >>> the
> >>> design that spawned from our (Mike/Joe/Ara/Mine) upcoming
book that
> >>> involves
> >>> writing Yet Another PetStore. Basically, we used the IoC
support
> >>> offered by
> >>> XWork and the following:
> >>>
> >>> * PersistenceManager interface
> >>> * HibernatePersistenceManager class
> >>> * PersistenceAware interface
> >>> * HibernateConfiguration
> >>>
> >>> The HPM class was scoped at _request_ scope in
components.xml and
> >>> depended
> >>> on another component, HibernateConfiguration, that is
scoped at
> >>> _application_ level so that we can keep a single
> >> SessionFactory 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

Reply via email to