How to detect is response deliverred to the client?

Hello everybody...
I have problem and don't know how to solve.
My server application runs on apache tomcat 5.5, and deals with some important data transactions.
After getting the request, server has 5 sec. to send response, after that clients will close their sockets.
The connection can be very slow, (GPRS), so it is very possible that transaction will not be over in that time.
I need the way to find out, on my server side, when response isn't get to client in 5 sec.
Is there any idea how to do that?
Sorry if my English is not so perfect.
Thanks

Yes, but that way of write timeout means that write have 5 sec to send buffer to the underlying protocol.
I can't know if TCP succeed or not to deliver data in that short time. I think write is asynchron.
Problem is how to detect when client is disconnect and data are not delivered.
Once again, sorry if my English is not so good.

Similar Messages

  • How to include a response element in the ESB database adapter.

    hi,
    i am using the dbadapter to insert the data into the table successfully.
    The problem is when i am using a db adapter it doesnot include a response element in its wsdl.I want to send a response to the client as and when the data got inserted from the dbadapter for that transaction.
    i tried using the pl/sql procedure with a out parameter which returns the response but the problem is the pl/sql is called by adapter only once though i am using for each constructor.
    i tried to modify the xsd generated by the dbadapter by including the response element,but the xsd is not getting parsed and throwing error.
    how to overcome this problem and send a immediate response to the client as and when the adapter inserts the data into oracle?
    thanks in advance.

    Although not the cleanest solution, but can't you create another routing service which defines a request (equal to the request element of the original routing service) and reply element (defining a single element called success or something).
    Then have this new routing service invoke your original routing service which invokes the database adapter. Now define a XSLT map for the reply of the new routing service and put an XSL text there with the value "success" or something?
    So:
    Routing_service_new --> Routing_service_original --> database_adapter
    Regards, Ronald

  • How to detect which application connects to the in...

    Hello,
    I have a E71 and for a week or so the phone drains the battery quite fast.
    I have seen in the journal that an wi-fi connection is opening every 2-3 minuntes for less the half a minute.
    The weird thing is that the WLAN is disconected and WLAN SCAN is OFF, but the icon that shows a wi-fi connection appaers every 2-3 minutes.
    So how to detect the damn application that makes wi-fi conections by my back?
    Thanks!

    Check messaging and social media apps connection and sync settings.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • How much data is actually sent to the client?

    Hi,
    On the web application stuff I'm doing, I have a somewhat complex class structure for my objects. For example: I have a Project class and a Concept class, and technically you can access a Project object's assocated Concept object, but to do so you'd have to access a chain of three associated classes. Right now if I want to display some information from the Concept object in a JSP, I have to access the Project object from the session and then call a cascade of four methods to get to it.
    I was wondering if it'd make things simpler (and just easier to read) if I just set the Concept object in my session along side with the Project object that's already in the session. That made me worry about how much data is really being "stored." How much data is really being sent to the client? I know that JSP's are produced server side, so I'm guessing that the only thing sent to the user is the final rendered html/xml page. Is this correct? Do I have anything to consider when I decide what data put in the session?
    Thanks for any help,
    Will

    I know
    that JSP's are produced server side, so I'm guessing
    that the only thing sent to the user is the final
    rendered html/xml page. Is this correct? Do I have
    anything to consider when I decide what data put in
    the session?Yes, that is correct. Only the HTML (or whatever it is) that your JSP generates is sent to the client. (Except that the server may send a cookie too, but that's just a few bytes to identify the client.)
    As for what to put in the session: Data in the session takes up memory space, but data not in the session will have to be recreated later if you need it again. It's the usual trade-off of the cost of caching data in memory versus the cost of reproducing that data.
    (And if it wasn't obvious, don't put anything in the session if it is only being used to process the current request and response. Only put data in the session if it will be needed to process subsequent requests.)

  • How to create a Credit Note to the client for purchasing of an Asset last y

    Hi,
    I have an issue in Asset Accounting as it showed bellow:
    Assets depreciation start date is 1st October 2007.
    We have run the depreciation up to November 2007.
    Than we sold the asset in December.
    However, after the end closed year 2007, client returned the asset in 1 st January 2008.
    So i need to create a Credit Note to the client for purchasing of an Asset last year, but we don't know how to create it?
    We thinks that correct movement should be debit in extraordinary cost / profits account, debit in asset account, credit in accumulated depreciation account and credit in client account.
    Plz help. I will assign full points for any useful answer.
    Thanks
    Edited by: Ricardo Pedro Rodrigues Ferrão on Dec 20, 2007 10:09 AM

    How did you sell the asset?
    You can just reverse the sale transaction by going to transaction AB08.
    Hopefull this may work for you.
    Regards,

  • How to get file input stream from the client machine by JSF Fileupload API?

    Dear Friends,
    How to get the file input stream from the client machine by JSF HtmlFileupload or fileupload API. At present, if i execute the file upload code in the client machine, it is able to get the local path of the file and looking for the file in server machine. So i am getting FileNotFoundException.
    E.g., If a file is located at client machine at following location means "C:\Test\Test.txt",
    uploadClass.getFileuploadComponent().getFilename().toString() returns "C:\Test\Test.txt". But it is looking for that file in server and throwing FileNotFoundException.
    Please post your replies soon.
    Thanks,
    JP

    Depends on which version of JSF you're using. If JSF 1.2, I wouldn't even bother trying to hack this into JSF itself unless you can use something like Seam 2 or richfaces.
    http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_fileUpload.html
    http://docs.jboss.org/seam/2.2.1.CR3/reference/en-US/html/controls.html#d0e29259 (look for s:fileUpload)
    But if I were you, a simple non-jsf form with a servlet works best for taking file uploads.
    As for JSF 2.0, there are other ways of getting it done.
    http://balusc.blogspot.com/2009/12/uploading-files-with-jsf-20-and-servlet.html

  • How to use javascript to print on the client side

    hi all,
    Now i'm facing a problem:
    I want to use javascript to print something(for example, a table) on the client side. So i must get a connection with the printer installed in the client computer.
    some says that getObject() function can do this,but i don't know how?
    Who please help me!

    window.print();

  • How to read a file residing on the client

    Hi
    How to read a text file residing on client using webdynpro application( If I write code in controller it will go the the server path rather than client path) ? Can somebody please help me
    Thanks

    Hi,
    If you want to upload a file to the server then you can use the webdynpro FileUpload to read the file from the local machine and
    save it to the server.
    But if you want to only read the file from the local machine you need to keep the file within the application in the path - scr/packages/components
    Thanks
    Ritushree
    Edited by: Ritushree Saha on Jul 8, 2009 5:35 PM

  • How can I set Response Queue for standalone client using JMS Jax-RPC ?

    Hi,
    I am developing a standalone client for a web service running on a Weblogic 10.3 server using JMS transport. The response seems to be placed in JMSServer!JMSServer.TemporaryQueue0 when I try to test the application.
    The request xml created:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <content>
        <entry type="1">
            <textMessage fromQueue="true" JMSTimestamp="1285343150328" JMSReplyToDomain="1" JMSReplyTo="JMSServer!JMSServer.TemporaryQueue1" JMSRedelivered="false" JMSPriority="4" JMSMessageID="ID:&lt;520181.1285343150328.0&gt;" JMSExpiration="0" JMSDestination="SystemModule!demoQueue" JMSDeliveryMode="2">
                <headerProperty type="java.lang.String" value="text/xml; charset=utf-8" name="_wls_mimehdrContent_Type"/>
                <headerProperty type="java.lang.String" value="&quot;http://oracle/communications/platform/demo/webservices/rpc/secure/gen/getPhoneList&quot;" name="_wls_mimehdrSOAPAction"/>
                <headerProperty type="java.lang.String" value="/DemoWebServices/DemoWebServicesJMS" name="URI"/>
                <text>&lt;env:Envelope xmlns:env=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;&lt;env:Header/&gt;&lt;env:Body&gt;&lt;gen:lastName xmlns:gen=&quot;http://oracle/communications/platform/demo/webservices/rpc/gen&quot;&gt;8&lt;/gen:lastName&gt;&lt;/env:Body&gt;&lt;/env:Envelope&gt;</text>
            </textMessage>
        </entry>
    </content>On the application server I have configured a Response Queue that I would like my application to use. The client stubs where generated using the ant Task: weblogic.wsee.tools.anttasks.ClientGenTask.
    Standalone client code snippet:
          DemoWebServices_Impl service = null;
          try {
              service = new DemoWebServices_Impl(wsdl);
          } catch (ServiceException e) {
              e.printStackTrace();
          DemoWebServicesPortType port = null;
          //create credential provider and set it to the Stub
          try {
              port = service.getDemoWebServicesJMSPort();
          } catch (ServiceException e) {
            e.printStackTrace();
          PhoneList response = null;
          try {
              response = port.getPhoneList("8");
          } catch (RemoteException e) {
              e.printStackTrace();
          if(response != null) {
            for(Phone aPhone : response.getPhone()) {
                System.out.println("aReturned Phone number is:  " + aPhone.getPhoneNumber());
          }Would you please help me with modifying the client code to define which Queue the web service response should be placed in? setQueue() of the JMSTransportInfo class did not do the trick. Please help....
    Thanks,
    Sajitha
    Edited by: Sajitha on Sep 24, 2010 12:29 PM
    Edited by: Sajitha on Sep 27, 2010 8:44 AM

    Hi,
    I am developing a standalone client for a web service running on a Weblogic 10.3 server using JMS transport. The response seems to be placed in JMSServer!JMSServer.TemporaryQueue0 when I try to test the application.
    The request xml created:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <content>
        <entry type="1">
            <textMessage fromQueue="true" JMSTimestamp="1285343150328" JMSReplyToDomain="1" JMSReplyTo="JMSServer!JMSServer.TemporaryQueue1" JMSRedelivered="false" JMSPriority="4" JMSMessageID="ID:&lt;520181.1285343150328.0&gt;" JMSExpiration="0" JMSDestination="SystemModule!demoQueue" JMSDeliveryMode="2">
                <headerProperty type="java.lang.String" value="text/xml; charset=utf-8" name="_wls_mimehdrContent_Type"/>
                <headerProperty type="java.lang.String" value="&quot;http://oracle/communications/platform/demo/webservices/rpc/secure/gen/getPhoneList&quot;" name="_wls_mimehdrSOAPAction"/>
                <headerProperty type="java.lang.String" value="/DemoWebServices/DemoWebServicesJMS" name="URI"/>
                <text>&lt;env:Envelope xmlns:env=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;&lt;env:Header/&gt;&lt;env:Body&gt;&lt;gen:lastName xmlns:gen=&quot;http://oracle/communications/platform/demo/webservices/rpc/gen&quot;&gt;8&lt;/gen:lastName&gt;&lt;/env:Body&gt;&lt;/env:Envelope&gt;</text>
            </textMessage>
        </entry>
    </content>On the application server I have configured a Response Queue that I would like my application to use. The client stubs where generated using the ant Task: weblogic.wsee.tools.anttasks.ClientGenTask.
    Standalone client code snippet:
          DemoWebServices_Impl service = null;
          try {
              service = new DemoWebServices_Impl(wsdl);
          } catch (ServiceException e) {
              e.printStackTrace();
          DemoWebServicesPortType port = null;
          //create credential provider and set it to the Stub
          try {
              port = service.getDemoWebServicesJMSPort();
          } catch (ServiceException e) {
            e.printStackTrace();
          PhoneList response = null;
          try {
              response = port.getPhoneList("8");
          } catch (RemoteException e) {
              e.printStackTrace();
          if(response != null) {
            for(Phone aPhone : response.getPhone()) {
                System.out.println("aReturned Phone number is:  " + aPhone.getPhoneNumber());
          }Would you please help me with modifying the client code to define which Queue the web service response should be placed in? setQueue() of the JMSTransportInfo class did not do the trick. Please help....
    Thanks,
    Sajitha
    Edited by: Sajitha on Sep 24, 2010 12:29 PM
    Edited by: Sajitha on Sep 27, 2010 8:44 AM

  • How to detect if  Database is down when client application is running?

    Hi,
    I have a oracle Forms application accessing a remote database. While doing processing, application has to post some data in a remote database.
    As of now, when the Forms client is running and remote database is down, the client hangs.
    I have tried Creating a timer before remote database procedure call in the FORMS Trigger and checking in the when_timer_expired trigger, if a specific duration has passed or not. This doesn't work as timer fires only after the remote procedure call completes and other SQL statements in the FORMS trigger where i have created the timer completes.
    I Know sqlcode -3113 can be of help.
    Hope someone can help me with a solution/suggestion.
    Thanks
    Hari

    interesting situation.
    what about issuing the select count(*) into cnt from dual, if cnt>0 then do post.
    better to setup the remote database has fail-over to another node.

  • How to load a excel sheet on the client machine from jsp

    hai all,
    I want an excel sheet to be opened like "c:\excelsheet.xls" on the client machine from my JSP so that i can send the out put of my jsp to it.i will press a button on jsp and i want the query out put in the excel sheet. if it is already opened then it has to be closed and reopened with new data, the old data has to be lost.
    can any one help me out....
    Thanks for any help...
    regards,
    ravikiran

    Hai friend,
    you add mime type in web.xml
    for example,
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/excel</mime-type>
    </mime-mapping>

  • How to keep and read files on the client side?

    There's a web page with a certain X3D model, and there are several inputs on the same page. When a user submits the form, the servlet changes the model and returns a page based on the input values. The problem is that the part of this model is a human body (which is pretty tough for downloading). What I'm trying to find out is if there's some way to store that model on the local computer and then access it from the servlet without regetting it from the server. Thanks.

    With JSP you can't run java code on the client. All of it runs on the server.
    To run java on the client, you use an Applet.
    Alternatively you go the pure html/javascript way, and write javascript includes for code.
    Or you use something like AJAX, to submit the form, and receive back only "changes" to the model.
    Not sure if that helps at all.
    Good luck,
    evnafets

  • How to get IP Address of all the clients

    Hi,
    I am useing oracle 8i on sun solaris and clients are of windows
    when quering v$session it gives many details
    but does not gives the IP_Address of the clients.
    I had used SYS_CONTEXT('USERENV','IP_ADDRESS') but
    it gives the details of only the current session.
    But I want the IP_Address of all the clients connected and
    shown in v$session.
    Regards
    Arun Tayal

    Hi,
    From column MACHINE in V$SESSION, you can get the I.P. address:
    SQL> select UTL_INADDR.GET_HOST_ADDRESS('localhost') from dual;
    UTL_INADDR.GET_HOST_ADDRESS('LOCALHOST')
    127.0.0.1In this sample I used localhost, but you can use the column. It might require some additional work (to escape windows domains for example - and ensure all the hosts are known to the system via DNS).
    HTH,
    Yoann.

  • How to detect as to which slot the SCXI module is present

    i want to detect to which slot the scxi module is connected . I have used get scxi info vi , but the
    disadvantage is that it does not give the exact slot position the module is present . Please let me know any vi which does this function
    Suresh Thangappan

    Hello Suresh,
    Thank you for contacting National Instruments.
    If you have LabVIEW 7.0 or higher, you can use the DAQmx Device Property Node with our NI-DAQmx driver. I have attached an example VI to demonstrate just how easy this can be accomplished.
    Regards,
    Bill B
    Applications Engineer
    National Instruments
    Attachments:
    Acq_Thermocouple_Sample.vi ‏54 KB
    DAQ_Device_Property_Node.JPG ‏77 KB

  • How to detect that we are on the current page while we r reading epub3?

    Hi Everyone,
    Im newer of using epub3. I'm trying to product an audio epub3 and i set display option "open-to-spread = true", when i slide first page, an audio will be played auto but for ibooks, when we slide first page, the second page already load before i open it. My question is that are there any way to detect that we are on current page?
    Sorry for my enlish language
    Thank in advance

    Hi Chen,
    I am not sure if you want to go to the stage when the storage-enabled node = 0 as this would force the data loss. My suggestion would be to check if the storage-enabled node in the Grid counts less than 5 or so.
    Re the ways, you can always start the reporter by using the system property -Dtangosol.coherence.management.report.autostart=true and you can always set the frequency to run the report. This report will keep all the JMX related data since the reporting is started. You can also run a background process that reads the Mbean and checks for the storage-enabled nodes. There are ways to do it using the shell script by polling the active PIDs on Storage enabled nodes.
    Hope this helps!
    Cheers,
    NJ

Maybe you are looking for