  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | 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 | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Mobile pages | Mobile pages 2004-07-30 - By Java_Forums
Back Hi,
Can we access WAP(wml) pages via SUN Application Server 8. Or have to use any add with it.
Thanks
Hassan
-- --Original Message-- -- From: A mailing list for Java(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@(protected)]On Behalf Of Balogh Zolt�n Sent: 29 July 2004 09:53 To: J2EE-INTEREST@(protected) Subject: new thread
Hi! As far as I know there is no possibility (or not recommended) to start a new thread in the EJB. But in this case I can't find the solution in the following case. There is a session bean which call a FTP API to check whether the given ftp-server available or not. If the server is not reachable I will get back a time-out message after eg. 2 minutes. OK I am able to set this timeout as good 20 sec but my boss requieres set it to 2 minutes (beacuse of one slower ftp server). My problem is that the JBOSS is hanging for 2 minutes to try make a login meanwhile I am not able to call eg. a administration page only if the connection is already refused. I'd need the other thread. One for the FTP login and one for other tasks.... I haven't a clue what the solution could be.... Thanks, Topicfun =========================================================================== 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".
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas -microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head> <meta http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 9"> <meta name=Originator content="Microsoft Word 9"> <link rel=File-List href="cid:filelist.xml@(protected)"> <title>new thread</title> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:Zoom>0</w:Zoom> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> </w:WordDocument> </xml><![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; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:553679495 -2147483648 8 0 66047 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig {margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p {margin-right:0cm; mso-margin-top-alt:auto; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} span.EmailStyle16 {mso-style-type:personal-reply; mso-ansi-font-size:10.0pt; mso-ascii-font-family:Arial; mso-hansi-font-family:Arial; mso-bidi-font-family:Arial; color:navy;} @(protected) Section1 {size:595.3pt 841.9pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style> </head>
<body lang=EN-GB style='tab-interval:36.0pt'>
<div class=Section1>
<p class=MsoNormal><span class=EmailStyle16><font size=2 color=navy face=Arial> <span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Hi,<o:p>< /o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle16><font size=2 color=navy face=Arial> <span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle16><font size=2 color=navy face=Arial> <span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Can we access WAP(wml) pages via SUN Application Server 8. Or have to use any add with it.<o :p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle16><font size=2 color=navy face=Arial> <span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle16><font size=2 color=navy face=Arial> <span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Thanks<o:p ></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle16><font size=2 color=navy face=Arial> <span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle16><font size=2 color=navy face=Arial> <span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Hassan<o:p ></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle16><font size=2 color=navy face=Arial> <span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle16><font size=2 color=navy face=Arial> <span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:black'>---- -Original Message-- --<br> <b><span style='font-weight:bold'>From:</span></b> A mailing list for Java(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@(protected)]<b><span style='font-weight:bold'>On Behalf Of </span></b>Balogh Zolt�n<br> <b><span style='font-weight:bold'>Sent:</span></b> 29 July 2004 09:53<br> <b><span style='font-weight:bold'>To:</span></b> J2EE-INTEREST@(protected)<br> <b><span style='font-weight:bold'>Subject:</span></b> new thread</span></font>< /p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><![if !supportEmptyParas] > <![endif]><o:p></o:p></span></font></p>
<p style='margin-left:36.0pt'><font size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>Hi!</span></font><font color=black><span style='color:black'> </span></font><font color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>
<p style='margin-left:36.0pt'><font size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>As far as I know there is no possibility (or not recommended) to start a new thread in the EJB.</span> </font><font color=black><span style='color:black'> <br> </span></font><font size=2 color=black face=Arial><span style='font-size:10.0pt; font-family:Arial;color:black'>But in this case I can't find the solution in the following case.</span></font><font color=black><span style='color:black'> < /span></font><font color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p>< /span></font></p>
<p style='margin-left:36.0pt'><font size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>There is a session bean which call a FTP API to check whether the given ftp-server available or not.< /span></font><font color=black><span style='color:black'> <br> </span></font><font size=2 color=black face=Arial><span style='font-size:10.0pt; font-family:Arial;color:black'>If the server is not reachable I will get back a time-out message after eg. 2 minutes. OK I am able to set this timeout as good 20 sec </span></font><font color=black><span style='color:black;mso-color-alt: windowtext'><o:p></o:p></span></font></p>
<p style='margin-left:36.0pt'><font size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>but my boss requieres set it to 2 minutes (beacuse of one slower ftp server).</span></font><font color=black><span style='color:black'> <br> </span></font><font size=2 color=black face=Arial><span style='font-size:10.0pt; font-family:Arial;color:black'>My problem is that the JBOSS is hanging for 2 minutes to try make a login meanwhile I am not able to call eg. a administration page</span></font><font color=black><span style='color:black; mso-color-alt:windowtext'><o:p></o:p></span></font></p>
<p style='margin-left:36.0pt'><font size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>only if the connection is already refused.</span></font><font color=black><span style='color:black'> < /span></font><font color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p>< /span></font></p>
<p style='margin-left:36.0pt'><font size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>I'd need the other thread. One for the FTP login and one for other tasks....</span></font><font color=black><span style='color:black'> </span></font><font color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>
<p style='margin-left:36.0pt'><font size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>I haven't a clue what the solution could be....</span></font><font color=black><span style='color:black'> </span></font><font color=black><span style='color:black; mso-color-alt:windowtext'><o:p></o:p></span></font></p>
<p style='margin-left:36.0pt'><font size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>Thanks,</span></font> <font color=black><span style='color:black'> <br> </span></font><font size=2 color=black face=Arial><span style='font-size:10.0pt; font-family:Arial;color:black'>Topicfun</span></font><font color=black><span style='color:black'> </span></font><font color=black><span style='color:black; mso-color-alt:windowtext'><o:p></o:p></span></font></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>
|
|
 |