Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Interest »

Re: How to handle transaction time out.

Manish Malhotra

2005-03-18

Replies:

Hi,
You are catching some exeption of the UserTransaction.
call <excepObj>.details which will give u the Thowable object and then
check this object with the transactionTimeOutException object.
See. the specs of UTA, how its throwing the timeout exception.

Hope this will help.

regards,
Manish

> No. I am using UserTransaction Services of JTA. I am able to time out the
> transaction successfully but am unable to get control of application back
> .
> The timing out of transction is indicated via a console logging that
> transaction ahs timed out after xxx secs. But this does go into any of
> exception block to enable me to do I want in such event.
>
> I am using WAS5.0
>
>
>
> Regards
>
> Sanjiv
>
>
>
>  _____
>
> From: A mailing list for Java(tm) 2 Platform, Enterprise Edition
> [mailto:J2EE-INTEREST@(protected)
> Sent: Monday, March 14, 2005 10:26 PM
> To: J2EE-INTEREST@(protected)
> Subject: Re: How to handle transaction time out.
>
>
>
> If you have an external interface are you calling that via JCA? I believe
> you can timeout a transaction using a JCA.
>
>
>
> -Kurien
>
>
>
>
>
>  _____
>
> From: A mailing list for Java(tm) 2 Platform, Enterprise Edition
> [mailto:J2EE-INTEREST@(protected)
> Sent: Monday, March 14, 2005 7:00 AM
> To: J2EE-INTEREST@(protected)
> Subject: How to handle transaction time out.
>
>
>
> I have a method calling external interface interaction. MY transaction
> start
> before invoking this transaction.
> However this external interface may take long or even go in infinite wait
> state at times and thereby causing my transaction to go incomplete.
>
> I have set the transaction time out for this transaction. But am unable to
> get control of application due to no-response from External interface.
>
> Do I have any chance of getting the control back to my program even if
> external interface does not respond infinitely?
>
> Regards
> Sanjiv
>
> ===========================================================================
> To unsubscribe, send email to listserv@(protected)
> body
> of the message "signoff J2EE-INTEREST". For general help, send email to
> listserv@(protected)".
>
> ===========================================================================
> To unsubscribe, send email to listserv@(protected)
> body
> of the message "signoff J2EE-INTEREST". For general help, send email to
> listserv@(protected)".
>
>
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@(protected)
> body
> of the message "signoff J2EE-INTEREST". For general help, send email to
> listserv@(protected)".
>
>

===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".
©2008 junlu.com - Jax Systems, LLC, U.S.A.