How do set operation timeout in tomcat server?

hi all
suppose i have one endless loop program(jsp) that program run under tomcat server,
so it's keep on runing in tomcat server.
i want, after some time the server send error message like operation timeout.
how do set operation timeout in tomcat server?
if anybody know help me.
my mail id [email protected]

Well, the server.xml file has connection time outs, but that is for idle time, I think... I'm not sure what would happen in a loop... , especially if you are sending some data back to the client in each iteration. Generally you shouldn't be starting a loop that will really run forever. Maybe have some type of counter to break out if something hasn't occurred within x iterations, or create a separate thread that can sleep for x seconds and set a flag to break the loop after that time.

Similar Messages

  • How to set up SAPconnect with email server

    Hi,
    Does any one know <b>how to set up SAPconnect with email server</b>
    We are using workflow and when it fails it we are sending the notification mail to the user on his company mail id, i.e. [email protected]
    This is working in the current production system. We are doing the new development which will replace the current production system. The existing Basis team does not know how it was setup in production system and how to set it up in the new system.
    When we send any mail notification from workflow we can see the mail in SCOT transaction but it is not received at the specified mail address.
    Can any one provide the configuration steps or any document for this.
    Thanks in advance..
    Pratik

    Hi Pratik,
    Check the following link:-
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    these link will help u to config SMTP.
    And one more thing u have to do..
    Go to SE11 n open Table sxnodes in change mode.
    And change F_ESMTP field to false i.e. BLANK for the Field NODE = SMTP.
    Hope this will work For U.
    Regards
    Sachin Dhingra

  • How to execute CGI Programs in Tomcat Server

    Hi,
    I am working on executing Perl Scrtipts(or CGI programs) in Tomcat Server.
    I have downloaded ActivePerl 5.8.0 6.0.3 build.I have modified some .jar files in tomcat\server\lib.
    I have changed conf\web.xml to access the CGIServlet.class that is in servlets-cgi.jar.
    My example.cgi is
    #!c:\Perl\bin\perl.exe
    print
    "Content-type: text/plain\n\n";
    foreach $var (
    sort keys %ENV) {
    print
    "$var=\"$ENV{$var}\"\n";
    @values = split(
    /&/,$ENV{'QUERY_STRING'});
    foreach $i (@values) {
    ($varname, $mydata) = split(
    /=/,$i);
    print "$varname = $mydata\n";
    and my test.html is
    <HTML>
         <HEAD>
              <TITLE>Environment Variables using GET</TITLE>
         </HEAD>
         <BODY>
              <FORM ACTION="cgi-bin/example.cgi" METHOD="POST">
                   Press submit for a list of environment variables. <BR>
                   First Name: <input type="text" name="fname" size=30><p>
                   Last Name: <input type="text" name="lname" size=30><p>
                   <input type="submit">
              </FORM>
         </BODY>
    </HTML>
    here I have changed url mapping in web.xml to cgi-bin.
    The test.html produces two text fields first and last name on submit:
    it accesses:http://localhost:8080/smalltownpapers/cgi-bin/example.cgi?fname=Tim&lname=Eden
    this should print some environmental variables but it is producing an empty page.
    Tomcat is not showing any errors or Tomcat is not at all listening.
    Can any one help me to solve this and how to execute Perl scripts in Tomcat server
    Thanks,
    Regards
    Murthy

    Sorry, I've never done this. I went to the Tomcat site and pulled down the CGI docs, which you might have seen:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html
    No other help available from me. Sorry.

  • How to set up the "incoming Mail server" for google apss account

    how to set up the "incoming Mail server" for google apss account

    The settings are not generic for all webmail accounts, only your office IT department would know what the server address is for their outgoing email server.  You'll have to ask them about it.

  • How to set the CLASSPATH in Unix Server

    Hi, everyone~
    Do anyone noe how to set the CLASSPATH in the hp-ux server? I tried the setenv CLASSPATH, but not working.. I think should use export. But my jsp pages still cannot working, dunnoe y?
    I wonder is the hp-ux support jsp and servlet or not?
    In order to let the jsp and servlet to run properly in the unix server, what kinds of steps should taken ?
    Hope somemore who experience with this situation b4 can give me some guidance.. Thanks~~
    regards,
    tzeyik

    Tomcat ignores any and all CLASSPATH environment variables. Even if you could figure out how to set it, Tomcat wouldn't use it.
    Better to learn how Tomcat's CLASSPATH works and how to deploy Web apps properly. - MOD

  • JDBC / JTA Timeouts : How to set a timeout on the fetching of a query ?

    Hi !
    I'm working on an Application running on Weblogic Server 11g. This app executes a query on an Oracle 11g database ...
    The problem is that this query returns millions of records ... and the app fetches the results during tens of minutes.
    We would like to set a timeout, wich will abandon the transaction, hang the database connection, destroy the socket ... or anything else ...
    This timeout will prevent the thread to become in STUCK state and stucking the weblogic managed server.
    Is this possible ?
    Thank's for your answers.
    Steve.
    Edited by: 966918 on 10 avr. 2013 07:18

    Abandon timeout will not help. That is only used if a database crashes during the second phase of commit. It specifies how long the transaction manager should keep trying to complete the transaction.
    JTA timeout will only work if you are using XA datasources and two-phase commit transactions. When the timeout occurs, it guarantees that the transaction cannot be committed. Eventually, all of the participant resources will be notified and will not allow any more work to take place on the transaction. It does not stop the threads and the application must be written to handle exceptions appropriately.
    Edited by: Steve Felts on Apr 17, 2013 8:32 AM

  • Setting session timeout in OracleWeblogic Server

    Hi All,
    I have doubt in setting session time out in Oracle WLS server 12c. Please suggest,
    There are two ways as i know editing the below files.
    1) weblogic.xml
    2) web.xml
    But when I open the weblogic.xml it has the below code, if we edit the value in
    <timeout-secs>3600</timeout-secs>
    the value implied for the admin console only as i know, the admin console will ask the user to re-login if the session is idle for morethan 6 mins.
    But If there is an application deployed like a bank.war file and customer is accessing the application. I want to set the user session time out to 2 mins i.e 120 seconds. How to set this in the server level ?
    Oracle Webogic server level ?
    <session-descriptor>
        <timeout-secs>3600</timeout-secs>
        <invalidation-interval-secs>60</invalidation-interval-secs>
        <cookie-name>ADMINCONSOLESESSION</cookie-name>
        <cookie-max-age-secs>-1</cookie-max-age-secs>
        <url-rewriting-enabled>false</url-rewriting-enabled>
    </session-descriptor>
    In the default web,xml  there is no param called timeout..
    Thanks
    Venkat

    Hello Venkat,
    I have implemented the same in my Application(OBIEE).Check it may helpful for you.
    Sasi Nagireddy: HOW TO CONFIGURE SESSION TIMEOUT IN OBIEE-11G..
    Thanks,
    Sasi Nagireddy..

  • Set Command Timeout For SQL Server

    Hello,
    How do you set the command timeout for the 'open' statement? I am running a Database via SQL Server and I tried the dialog box timeout statement (the check box on the advanced tab) and simply get an error. The manual shows a 'step.commandtimeout' but how is it implemented?
    Thanks,
    Kevin

    Kevin -
    I looked at the internal implementation of the CVI SQL Toolkit. The toolkit function that the step type uses is DBNewSQLStatement. Internally to the toolkit the function opens a recordset instead of a command object. The command timeout attribute is only available on a command object and not on a recordset object, so as implemented inside the toolkit the error is appropriate. I think the toolkit could have used a command object to create the recordset object and this would allow the toolkit to let you set the timeout attribute. Unfortuneately this is not the way it was done.
    For the future I may investigate to see if there is a way to bypass this limitation by using different toolkit functions, but I am not sure if there a
    re any side effects.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • How to set HttpURLConnection timeout while reading a stream?

    I want it got time out if the connection if lose while i read a stream from URL
    try {
         int timeout = 700;
         HttpURLConnection connection = (HttpURLConnection) downloadURl.openConnection();
         connection.setConnectTimeout(timeout);
         connection.setRequestProperty("Range","bytes=" + downloaded + "-");
         connection.connect();
         if (connection.getResponseCode() / 100 != 2) {
              error();
         int contentLength = connection.getContentLength();
         if (contentLength < 1) {
              error();
         if (status == DOWNLOADING){
              if (size == -1) {
                   size = contentLength;
              file = new RandomAccessFile(saveTmpName+".tmp", "rw");
              file.seek(downloaded);
         byte buffer[];
         stream = connection.getInputStream();
    connection.setReadTimeout(timeout);
         while (status == DOWNLOADING) { 
              if (size - downloaded > MAX_BUFFER_SIZE) {
                   buffer = new byte[MAX_BUFFER_SIZE];
              } else {
                   buffer = new byte[(int)(size - downloaded)];
              int read = stream.read(buffer); // how to set timeout while it is reading stream
              if (read <= 0)
                   break;
              file.write(buffer, 0, read);
              downloaded += read;
         if (status == DOWNLOADING) {
              status = COMPLETE;
    } catch (SocketTimeoutException  e) {
         error();
    } catch (IllegalArgumentException e) {
         error();
    } catch (Exception e) {
         error();
    } finally {
         if (file != null) {
              try {
                   file.close();
              } catch (Exception e) {}
         if (stream != null) {
              try {
                   stream.close();
              } catch (Exception e) {}
    }I try to set "setReadTimeout()" but is still not through timeout Exception

    ejp wrote:
    Because, there's no FTP client command that allows to do such thing.Socket.setSoTimeout().I agree with you on this one but the OP is talking about the FTPClient API from Apache.
    To the OP,
    BTW, I have reread the Javadoc about the [*API*|http://commons.apache.org/net/api/org/apache/commons/net/ftp/FTPClient.html] : indeed, there's no setTimeout method, but there is a setDataTimeout method : +Sets the timeout in milliseconds to use when reading from the data connection+ .

  • How to Set "delete from hub and server" for each account

    How can I set "delete from hub and server" differently for each account?
    I have 3 emails (2 shared, 1 personal).
    the personal is a 'hotmail' account which has device set to 'sync email', 'push', and 'Use SSL'.
    it will only sync one way (from desktop to device).
    I cannot set the global setting on the device to "delete from Hub and server" without affecting all accounts.
    I do not want to have to confirm delete on every item.
    previous to the 10.3 update this was not an issue.
    am i missing something? or is this another step backwards?

    The only other way would be to set it to prompt every time you get an email. Yeah, I know that defeats the purpose.. I guess in this aspect it is a step back

  • How to set ACLs on Remote MAC server Volumes..

    Hi,
    I have Mac OS X server v 10.5 Leopard. Initially I have enabled the ACLs using fsaclctl on the MAC server volume. When this volume gets mounted(through afp) on some other MAC client(MAC OS X 10.4 Tiger), the ACL status is shown as disabled. And it not allowing to set the ACLs on the remote volume from the client side.
    I have used the following command to enable ACLs from Client.
    sudo fsaclctl -p /Volumes/<server Volume> -e
    This failed as "not supported".
    Anyone knows how to set the ACLs on the remote MAC server volumes? Basically I want to see ACL working on Remote MAC server volumes.

    Hi
    +". . . remote MAC server volumes . . ."+
    Are you saying you are trying to enable ACLs on volumes shared by another OSX Server when volumes are mounted on the server in question?
    Or are saying you can't see if ACLs on mounted volumes when issuing ls -lae for example?
    You might want to read:
    http://discussions.apple.com/thread.jspa?messageID=648307&#648307
    http://discussions.apple.com/thread.jspa?messageID=1535247
    and
    http://discussions.apple.com/message.jspa?messageID=8456140#8456140
    http://discussions.apple.com/message.jspa?messageID=8340573#8340573
    http://discussions.apple.com/message.jspa?messageID=7777878#7777878
    Tony

  • How to Set CLASSPATH in Apache Web Server Using IAS

    Hi,
    I have problem setting the classpath for the servlet I am using for file uploading...My work environment is Web Server is Apache with Oracle8i IAS on Sun Solaris..
    I have tried various method like setting wrapper.classpath=/oracle/ias/Apache/Jserv/servlets and my class resides under /oracle/ias/Apache/Jserv/servlets/com/oreilly/servlets/MultipartRequest.class
    in the Jserv.properties, still it get the error message class ...not found in type declaration when I compile the code...my reference to the servlet in my JSP code is com.oreilly.servlet.MultipartRequest ..
    Can someone help me out please, if you have have any idea of how to set the class path with the working environment I have specified ealier....
    null

    have you posted this on the ias 9i forum where the ias 9i apache experts are at ??

  • How to display BIRT report on Tomcat server

    Hi,
    I am using BIRT to generates the report, i am having a BIRT file called Customers.rptdesign that i want to execute on Tomcat server, but not able to execute. On eclipse brouser its running very well and displaying reports in brouser but not in Tomcat.
    Waiting for replies........

    Well all you have to there is deploy the report with webapplication and write your custom classes which would compile the report and gives a HTML/PDF/RTF..... response for you accordingly.
    please checkout the below link which gives an idea of how you can do that....
    http://www.onjava.com/pub/a/onjava/2006/07/26/deploying-birt.html?page=2*
    and here is an example of a Dynamic Servlet which could be configured accordingly to generate proper response for you accordingly by passing (Mapped) parameters to the report.
    http://wiki.eclipse.org/Java-DynamicReport_Servlet_(BIRT)_*
    and to get more insight information about how this framework creeps in and how is that we use its API and etc..
    You may have a look at the below article
    http://www.eclipsecon.org/summiteurope2006/presentations/ESE2006BIRT_The_Open_Source_Reporting_Framework.pdf_*
    Hope this might help :)
    REGARDS,
    RaHuL

  • How to set the priority for Commit Server?

    Hi all,
    I want to know how to set up the priority for committing documents.
    I'm having two different odc applications and i want to commit documents belongs to one application (URGENT) as soon as it has complete the indexing. (I'm running commit server every second for this (URGENT) application).
    But once the commit server start to commit batches belongs to one application it continues until finishes, and then only it switch to the URGENT application even though indexed documents are there.I have tested with batch priority, Batch status fields in commit server.
    What is exactly happen in setting batch priority ?
    How do i switch commit serve to run urgent batches (which is belongs to another application) as soon as indexed??
    I can use ODC or ODDC.
    Thank You.....

    Don't worry - I'm more think aloud, so it is more a hypothesis than a solution.
    You write that
    We are using ODC to Index the documentsWhat exactly does this mean? If it means that a user types in metadata values, then you could take a look whether those metadata are needed for the item to be checked in (like the mentioned security group), or whether it is "other" metadata (e.g. supplier, invoice number, etc.) that you could, in theory, fill in in your application in IPM - imagine that you use IPM to check in the document and all you have is a TIFF.
    Btw. you also write that
    (we) use Input agent to sent documents to IPMI thought that ODC (Commit Profile) does this work for you, or not? If you use ODC to commit to a disk, and Input agent to get it from a disk to IPM, how about using a direct commit profile to IPM?

  • How to use toplink in the tomcat server?

    Hi,
    I want to use Toplink in the tomcat server. I am connecting to oracle database using DataSource.
    Can any body help me, what are the setup required to use the toplink in the tomcat?
    Please help me if any body has idea on the same.

    Take a look at this other forum posting: Tomcat acquire dataSource [TOPLINK-7060]
    --Shaun                                                                                                                                                                                                                               

Maybe you are looking for

  • Large file size increase when editing in PS3

    I shoot mostly JPG with most file sizes in the 5MB range. Today I sent 3 files to PS3 for auto alignment and blending to a panorama. When complete, the resulting PSD file back in my Lightroom library is 495MB. When I export the PSD panorama as a JPG

  • My web.dll file doesn't work under windows 7 or 8 64 bit

    Dears, i hope to find you all in good health, i have developed my own dll  using C# 2010, in order to use it under web (IE) i also developed web.dll in order to call my application dll, anyhow i have 2 version of  web.dll because i already have 2 ver

  • 10.7.4 lost RAW format

    I have a nikon p7000 and the .NRW raw files it creates are no longer being recognized in 10.7.4, does anyone know how to fix this? the camera is still listed as supported

  • Lost my pictures from piclock app

    I had pictures saved in one of my piclock application but unknowingly i deleted that application. and by now all my saved photos in that app has been gone. i have my backup in itunes till date before i deleted that app. can anyone help me to recover

  • Error CL_RSDM_READ_MASTER_DATA

    Hi, When I am trying to execute the report the BEx analyser is giving the following error message before kicking out from BEx. "System error in program CL_RSDM_READ_MASTER_DATA and  form_sidval_direct_" When I tried to analyse the error I am getting