Hi Ted,
I'm developing a framework (which someone else called 'featherweight') to
integrate 'your package of choice' of IoC, JPA, transaction management,
domain-driven tiers and servlet MVC without EJB.
To answer your question, I haven't had to do much to plug in OpenJPA and Struts2
together - in fact, I haven't had to do anything apart from decide whether I
wanted to have a filter or a Struts2 interceptor or a Spring interceptor for
OpenEntityManagerInView.
I chose the filter because it implements a standard (Servlet) and would cater
for DWR integration too.
Concerning optimistic locking, I've got version fields on all my persistent
objects, mapped to version columns. I haven't got this whole thing working yet
since it's in the process of migrating from Spring MVC / non-JPA Hibernate and
there's alot of testing framework code to put through the mangler first. So I've
yet to overhaul the versioning or the identity fields (praying for smooth passage).
regards
Adam
Ted Husted on 16/11/07 10:36, wrote:
Over on dev@, a couple of us are working on a JPA MailReader. Rather
than just try and port the old version, we're also refactoring the
internal design so that it's more in line with the JPA overall.
I know the JPA is growing in popularlity among Struts developers. I
was wondering if there are certain Struts 2 features that people where
finding useful in using JPA or Hibernate 3 with Struts 2. Are you
using custom interceptors?, type converters?, Spring?, Guice?,
model-driven? the scope plugin? Something else? Any slick, reusable
workflows for handling optimistic locking collisions?
Of course, I expect Struts 1 developers may also be moving to the JPA
too. Any S1 war stories would be interesting too.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]