I think Ted and I started a conversation briefly about this, and I
know there was a thread on openjpa-users a while back. The
OpenSessionInView doesn't really translate well to JPA and
EntityManagers. In Hibernate, you have a 'getCurrentTransaction' (or
is it getRunningTransaction, I can't remember), but with JPA, there is
a one-to-one relationship with EntityManagers and transactions. The
more that I've played with this, the more I think that Spring is the
way to go.

Although I will say that Ted did a good job in the jpa-mailreader he
wrote for strutsuniversity.

-Wes

On 12/14/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I' just looked at jBoss Seam documentation. I wonder if anyone allready
> suggested to have similar features on Struts actions, that seems not so
> difficult to implement, by mixing an OpenSessionInView interceptor, some
> ModelDriven elements and injecting a JPA EntityManager in the action.
>
> As Seams is now promoted as a JSR (299), this could be nice to have Struts
> as an alternative implementation.
>
> Nico.
>


-- 
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to