The transaction context on EJBs is confined to a specific method call and is
managed via the deployment descriptor for a specific method. I am not a huge
expert on how hibernate manages transactions but the overall idea of a
transaction should be confined to the object that delegates the transaction
(transaction manager for Hibernate?).

This funtionality should not be tied to a servlet filter. If you want
transaction support use JTA in your methods!

Justen Stepka

----- Original Message -----
From: "Christoph Kiehl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 08, 2002 11:21 AM
Subject: Re: [OS-webwork] Callback after view is rendered


> Hi,
>
> > A few people have suggested using a filter to handle the hibernate
> > session. It probably wouldn't be a bad idea to see such a filter in
> > the source for hibernate users. Any contributors?
>
> Hm, shouldn't transactions last only as short as possible? We are using a
> system where the transaction is opened and closed in a wrapper for the
> execute() method, but I always thought this is a design flaw ... ?
> Writing a filter would extend the time the transaction is open again.
Isn't
> there a better solution? I have no experience with EJB, but don't you
always
> have a transaction automatically opened? How do they handle that?
>
> Regards
> Christoph
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: See the NEW Palm
> Tungsten T handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>




-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to