RE: [Hibernate] Transaction Interface and timeouts

2004-05-18 Thread Aaron Knauf
CTED] > 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() >

Re: [Hibernate] Transaction Interface and timeouts

2004-05-18 Thread Christian Bauer
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 co

RE: [Hibernate] Transaction Interface and timeouts

2004-05-18 Thread Aaron Knauf
t; To: Aaron Knauf > Cc: [EMAIL PROTECTED] > Subject: Re: [Hibernate] Transaction Interface and timeouts > > > On 19 May (09:57), Aaron Knauf wrote: > > > How would you implement an async operation from an EJB? > And how would that help if your query takes longer t

Re: [Hibernate] Transaction Interface and timeouts

2004-05-18 Thread Christian Bauer
On 19 May (09:57), Aaron Knauf wrote: > How would you implement an async operation from an EJB? And how would that help if > your query takes longer than 30s? It would still fail - just later. Message Driven Beans > Hibernate would implement setting the timeout through the TransactionFactory

RE: [Hibernate] Transaction Interface and timeouts

2004-05-18 Thread Aaron Knauf
; From: Christian Bauer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 19, 2004 9:23 AM > To: Aaron Knauf > Subject: Re: [Hibernate] Transaction Interface and timeouts > > > On 19 May (09:06), Aaron Knauf wrote: > > > If you want the same piece of code to run both inside an

Re: [Hibernate] Transaction Interface and timeouts

2004-05-17 Thread Christian Bauer
On 18 May (13:42), Aaron Knauf wrote: > The one problem with this is that there is no way to generically set transaction > timeouts. Doing this inside an appserver requires different code to doing it > outside an appserver and there is no way to do it in configuration at all. Why would you nee