  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | How to handle transaction time out. | How to handle transaction time out. 2005-03-17 - By Sanjiv Kapila
Back 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)] On Behalf Of Kurien Joseph 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)] On Behalf Of Sanjiv Kapila 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) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft -com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1= "urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC -html40">
<head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <title>How to handle transaction time out.</title> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName" downloadurl="http://www.microsoft.com"/> <!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style> <![endif]--> <style> <!-- /* Font Definitions */ @(protected) {font-family:Tahoma; panose-1 (See http://ose-1.ora-code.com):2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} h1 {margin-top:9.0pt; margin-right:0in; margin-bottom:9.0pt; margin-left:.3in; text-indent:-.3in; line-height:12.0pt; page-break-after:avoid; mso-list:l0 level1 lfo1; font-size:12.0pt; font-family:Arial; font-weight:bold;} h2 {margin-top:6.0pt; margin-right:0in; margin-bottom:6.0pt; margin-left:.4in; text-indent:-.4in; mso-list:l0 level2 lfo1; font-size:12.0pt; font-family:Arial; font-weight:bold;} h3 {margin-top:6.0pt; margin-right:0in; margin-bottom:6.0pt; margin-left:1.25in; text-indent:-.5in; mso-list:l0 level3 lfo1; font-size:10.0pt; font-family:Arial; font-weight:bold;} h4 {margin-top:6.0pt; margin-right:0in; margin-bottom:6.0pt; margin-left:.6in; text-indent:-.6in; line-height:12.0pt; page-break-after:avoid; mso-list:l0 level4 lfo1; font-size:10.0pt; font-family:Arial; font-weight:bold;} h5 {margin-top:6.0pt; margin-right:0in; margin-bottom:3.0pt; margin-left:.7in; text-indent:-.7in; line-height:12.0pt; mso-list:l0 level5 lfo1; font-size:11.0pt; font-family:"Times New Roman"; font-weight:normal;} p.MsoToc1, li.MsoToc1, div.MsoToc1 {margin-top:6.0pt; margin-right:0in; margin-bottom:6.0pt; margin-left:.7in; text-indent:-.5in; font-size:10.0pt; font-family:"Times New Roman"; text-transform:uppercase; font-weight:bold;} p.MsoToc2, li.MsoToc2, div.MsoToc2 {margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.7in; margin-bottom:.0001pt; text-indent:-.5in; font-size:10.0pt; font-family:"Times New Roman"; font-variant:small-caps;} p.MsoToc3, li.MsoToc3, div.MsoToc3 {margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.7in; margin-bottom:.0001pt; text-indent:-.5in; font-size:10.0pt; font-family:"Times New Roman"; font-style:italic;} p.MsoBodyText, li.MsoBodyText, div.MsoBodyText {margin-top:0in; margin-right:0in; margin-bottom:6.0pt; margin-left:18.45pt; line-height:12.0pt; font-size:10.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} p {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman";} p.Style1, li.Style1, div.Style1 {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} span.EmailStyle23 {mso-style-type:personal; font-family:Arial; color:navy;} span.EmailStyle24 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @(protected) Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} /* List Definitions */ @(protected) l0 {mso-list-id:1588467166; mso-list-template-ids:-230755474;} @(protected) l0:level1 {mso-level-style-link:"Heading 1"; mso-level-text:%1; mso-level-tab-stop:.3in; mso-level-number-position:left; margin-left:.3in; text-indent:-.3in;} @(protected) l0:level2 {mso-level-style-link:"Heading 2"; mso-level-text:"%1\.%2"; mso-level-tab-stop:.4in; mso-level-number-position:left; margin-left:.4in; text-indent:-.4in;} @(protected) l0:level3 {mso-level-style-link:"Heading 3"; mso-level-text:"%1\.%2\.%3"; mso-level-tab-stop:1.25in; mso-level-number-position:left; margin-left:1.25in; text-indent:-.5in;} @(protected) l0:level4 {mso-level-style-link:"Heading 4"; mso-level-text:"%1\.%2\.%3\.%4"; mso-level-tab-stop:.6in; mso-level-number-position:left; margin-left:.6in; text-indent:-.6in;} @(protected) l0:level5 {mso-level-style-link:"Heading 5"; mso-level-text:"%1\.%2\.%3\.%4\.%5"; mso-level-tab-stop:.7in; mso-level-number-position:left; margin-left:.7in; text-indent:-.7in;} @(protected) l0:level6 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6"; mso-level-tab-stop:.8in; mso-level-number-position:left; margin-left:.8in; text-indent:-.8in;} @(protected) l0:level7 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7"; mso-level-tab-stop:.9in; mso-level-number-position:left; margin-left:.9in; text-indent:-.9in;} @(protected) l0:level8 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8"; mso-level-tab-stop:1.0in; mso-level-number-position:left; margin-left:1.0in; text-indent:-1.0in;} @(protected) l0:level9 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9"; mso-level-tab-stop:1.1in; mso-level-number-position:left; margin-left:1.1in; text-indent:-1.1in;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>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.<o:p></o:p> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>I am using WAS5.0<o:p></o:p></span></font> </p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>Regards<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>Sanjiv<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt; font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName w:st="on">A mailing list for Java</st1:PersonName>(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@(protected)] <b><span style='font-weight:bold'>On Behalf Of </span></b>Kurien Joseph<br> <b><span style='font-weight:bold'>Sent:</span></b> Monday, March 14, 2005 10:26 PM<br> <b><span style='font-weight:bold'>To:</span></b> J2EE-INTEREST@(protected)<br> <b><span style='font-weight:bold'>Subject:</span></b> Re: How to handle transaction time out.</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>If you have an external interface are you calling that via JCA? I believe you can timeout a transaction using a JCA.<o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>-Kurien<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt; font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName w:st="on">A mailing list for Java</st1:PersonName>(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@(protected)] <b><span style='font-weight:bold'>On Behalf Of </span></b><st1:PersonName w:st="on">Sanjiv Kapila</st1:PersonName> <br> <b><span style='font-weight:bold'>Sent:</span></b> Monday, March 14, 2005 7:00 AM<br> <b><span style='font-weight:bold'>To:</span></b> J2EE-INTEREST@(protected)<br> <b><span style='font-weight:bold'>Subject:</span></b> How to handle transaction time out.</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'><o:p> </o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>I have a method calling external interface interaction. MY transaction start before invoking this transaction. </span></font><br> <font size=2><span style='font-size:10.0pt'>However this external interface may take long or even go in infinite wait state at times and thereby causing my transaction to go incomplete.</span></font><o:p></o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>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. </span></font><o:p>< /o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Do I have any chance of getting the control back to my program even if external interface does not respond infinitely?</span></font> <o:p></o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Regards< /span></font> <br> <font size=2><span style='font-size:10.0pt'>Sanjiv</span></font> <o:p></o:p></p>
</div>
</body>
</html> =========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". <p> =========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". <p> =========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". <p>
|
|
 |