My issue is that I have a couple of operations that take place on huge datasets and they take longer than 30s to complete. In weblogic 6.1, the only way to set a transaction timeout using bean-managed transactions is to do it programmatically. Obviously, looking up the UserTransaction in JNDI will not work if you are executing outside of a JTA environment, so adding the programmatic timeout setting causes my code to fail when run directly from a UI and also when run directly from a unit test.
>From what I can see it would be very simple to implement this generically in >hibernate. The TransactionFactory strategy is already in place. As I mentioned >before, a further step could be to implement a TimingOutJdbcTransactionFactory, but I >don't see a need for that right now. ADK > -----Original Message----- > From: Christian Bauer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 19, 2004 11:38 AM > To: Aaron Knauf > Cc: [EMAIL PROTECTED] > Subject: Re: [Hibernate] Transaction Interface and timeouts > > > On 19 May (11:35), Aaron Knauf wrote: > > > Lookup the UserTransaction and call setTransactionTimeout() > on it before calling begin(). In the case of a non-JTA > environment, there is no way to set the transaction timeout > as transactions do not normally timeout, so it becomes > irrelevant. Of course, it would be possible, (even easy,) if > there were a requirement, to implement a mechanism by which > standard JDBC transactions were rolled back after a timeout, > but I do not see a need for it right now. > > I think I didn't understand you fully, because I thought that this was > exactly what you wanted and I don't see a way to implement it. The JTA > timeout can certainly be set, but then again, you can already define > that in our application server configuration. > > -- > Christian Bauer > [EMAIL PROTECTED] > http://hibernate.org/ > ----------------------------------------------------------------------------------------------- Have you seen our website?.... http://www.vodafone.co.nz CAUTION: This correspondence is confidential and intended for the named recipient(s) only. If you are not the named recipient and receive this correspondence in error, you must not copy, distribute or take any action in reliance on it and you should delete it from your system and notify the sender immediately. Thank you. Unless otherwise stated, any views or opinions expressed are solely those of the author and do not represent those of Vodafone New Zealand Limited. Vodafone New Zealand Limited 21 Pitt Street, Private Bag 92161, Auckland, 1020, New Zealand Telephone + 64 9 357 5100 Facsimile + 64 9 377 0962 ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel