How to listen out for a stream of data coming from (web)server

Hello
I have an applet that connects to a server (same location as web server) and connects to a server on a socket. This all works fine for sending commands to this server. But the server can send data to the client at any moment in time. So how do I listen out for the activity? do I launch a separate thread that sits listening for incoming data?
What is the way to do it?
Angus

Check out my InfoFetcher class
http://forum.java.sun.com/thread.jspa?threadID=750441&messageID=4291848

Similar Messages

  • How to find out the URL of the user coming from?

    Hi folks,
    From the HttpServletRequest, is there a way to find out the URL of the user coming from?
    Thanks in advance!
    Billy

    It is strange. The link is on a different http site eg. http://www.othersite.com. The link is pointing https://www,mysite.com/index.html. I put the alert(document.referer) on the index.html. Using FireFox will show the alert http://www.othersite.com every time. However, on IE, the first time is empty. The second time I click on the link, it will show http://www.othersite.com. Very consistent.

  • How to figure out where non-deallocated objects are coming from?

    When running the instruments program and checking the "net" box on the left side, is see that as I run my program the counts for various object types keep increasing. As my program is a simple one where the user is going from page to page, I will assume that these increases are the mark of a memory leak. The system is not detecting these as leaks but certainly my block count should stay more or less constant. I see that I am leaking some CGImage blocks; how do I find out where in the code these blocks are coming from; how to I go the line of code that create a particular block?

    Instruments has plug-in tools. Which tool are you working with?

  • How to Remove an Empty spca in Dropdown , data coming from R3

    Hi Frndz..
    There was a Dropdown in my view which is gettiing data from R3, but in the 1st place an Empty Space is coming but this is not the case in R3(in R3 there is no Space).
    Whenever am trying to get the value from that Empty Space is throwiing an Null Pointer Exception,can any one tell me how can i remove this Empty Space in my Dropdown.
    Thanks in Advance
    Rgards
    Rajesh

    Hi
    Thanks for ur prompt reply , in my case am getting the data from R3 to Portal View, suppose in dropdowm if i have 22 element in R3 , these 22 am getting but in addtion am gettiing an empty space in WDP View.
    Am concern to how to remove this empty spce in WDP View, this spcae is not there in R3
    Thnaks in Advance
    Regards
    Rajesh

  • How to look out for oss notes

    how to look out for oss notes

    OSS Note
    http://www.sappoint.com/basis/.pdf
    http://www.sap-img.com/basis/oss-notes.htm
    http://www.sap-img.com/basis/manually-applying-the-oss-note.htm
    REgards,
    Santosh

  • How do we scan for viruses of uploaded excel file in Web Dynpro for JAVA

    Hi All,
    Please let me know "How do we scan for viruses of uploaded excel file in Web Dynpro for JAVA"
    Regards,
    Ganga.

    Hi ,
    pl go through this note "Integrating a virus scan into SAP applications 817623 "
    SAP Virus Scan Interface
    http://help.sap.com/saphelp_nw2004s/helpdata/en/30/42c13a38b44d5e8d1b140794e8e850/frameset.htm
    Sample Application
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6e1c4221-0901-0010-63ba-b1f9459d6e74
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f2681486-0a01-0010-8497-c778eac80da5
    Regards
    Ayyappparaj

  • Hi, i was wondering how to share movies for example, to the mac desktop from the macbook pro?

    Hi, i was wondering how to share movies for example, to the mac desktop from the macbook pro?

    Share them how?  View them?  Copy them?
    What kind of movies?  DVDs?  iTunes? Other MPEG, AVI files, etc...

  • Need Help Streaming Video From Web Server Built Into Application - Linksys WRT54g Router

    Very much appreciate any help getting streaming video feed from web server built into video application to work properly using port forwarding on my Linksys WRT54g wireless router.
    Here is the situation:
    My PC is connected to the internet via a Linksys WRT54g wireless router.
    The Windows XP Pro SP2 firewall is enabled, with a firewall exception established for the video camera application.
    On the router, forwarding of port 80 is enabled for the LAN IP address of the PC running the video application with an embedded web server, and the web server in the video camera application is also set to use port 80.
    I have a free DYNDNS account and also run the DYNDNS updater program on the PC running the video application with embedded web server. According to the DYNDNS web site and the DYNDNS updater program, the IP address assigned to the machine running the video application with embedded web server is set correctly in my dyndns account.
    When I open a browser (Explorer or Firefox) on the PC running the video camera application with embedded web server, I am able to  connect to the video application's web server by going to the dyndns address linked to the machine running the video application. The video application's web server is set to use the dyndns address. That's the good news. The bad news is that I can't connect to the video application's web server from any machine that connects to the internet that uses a router other than the router used by the PC running the video application. I am only able to connect to the streaming video from the application's web server only on machines that connect to the internet using the same (home) router used by the PC that is running the video application.
    Since I am able to connect to the video app's embedded web server successfully on the machine running the video application, it seems that at least something about the current port forwarding settings is correct. For example, if I uncheck 'enable' for forwarding of port 80 on the router settings page, I am no longer able to connect to the video app's web server when I try to do so in a browser running on the machine running the video app. When I re-enable port 80 forwarding on the router, I am again able to connect to the web server of the video application on the machine running the video app. I thought that by enabling forwarding of port 80 on the router and associating that port with the LAN IP of the machine running the video application, it would be possible to connect to the streaming video of the video app's embedded web server from ANY machine connected to the internet, but that is not the case. There must be some other router settings to update/change in order to get the port forwarding working to enable a successful connection to the video web server, but I am stumped. Very grateful for any suggestions as to how to get this working properly.
    Thanks in advance...

    The firewall log can be configured on the third tab in the window for the firewall settings, where you can turn the firewall on and off completely.
    From your tests, though, it does not seem to be the firewall. However, to be sure, it would be good to check the log. It will help to eliminate the firewall as the culprit and you may find it handy in the future, too. ;-) Just don't forget to turn the log off again after you are done because it may cause some performance penalty on your system while on.
    From what you write, it seems as if I should give a little networking background on the ip addresses you'll see. Your setup is (or should be) a modem connected to the WAN/Internet port of the WRT. The computer is connected into a LAN port of the WRT.
    Your router has two IP addresses (that's what makes it a router): a WAN address and a LAN address. The WAN address is the address assigned by the ISP. It is a normal internet IP address. Everyone is able to send packets to this IP address. The WAN address is the one reported by whatismyipaddress.com, it should be listed in the dyndns record and it is the address that your router shows on the Status page. It's the public IP address of your router. Dyndns maps your dyndns.org name to that IP address.
    Your router also has an IP address on the LAN side. You can configure it to be whatever you want. The default is 192.168.1.1 with netmask 255.255.255.0 and it is better to leave it like that or at least inside the network 192.168.*.*. 192.168 is a special, reserved IP address range for private networks. Basically, routers in the internet are not supposed to forward addresses in this range. That makes them suitable for private LANs as the packets never can get anywhere. Most people using Linksys routers have there LAN in 192.168.1.*.
    The router acts as gateway, which means it forwards packets from PCs in the LAN to the internet and back. As all your PCs in your LAN share a single WAN IP address, the gateway does address translation (NAT). This works only in one direction: from the inside to the outside. The router remembers when a PC in your LAN sends something out and accepts the responses in and sending them back to the PC. If something comes in from the internet which cannot be associated with a ongoing communication the packet is dropped unless you use port forwarding.
    All computers in your LAN either have a static IP address assigned or use DHCP to get it automatically. The router has a DHCP server as well which gives out IP address from 192.168.1.100-149 if not changed. With a router with default settings static IP addresses can be in the range of 192.168.1.2-99 and 150-254.
    ipconfig /all reports your IP address in your LAN, i.e. an address 192.168.1.*. The gateway in this output should be 192.168.1.1 which is your router. And packet no in the LAN address range 192.168.1.* is send to the router which forwards the packets into the internet.
    An address 192.168.1.* should not appear as internet address in the Status page of the router nor should it appear at dyndns.
    Port forwarding is used to operate a server in the LAN. By default, a server in the LAN cannot be reached from the internet. You have to configure port forwarding for this. You configure that traffic bound for a specific port (e.g. TCP port 80 for http) on your WAN IP address is forwarded to the same port on a specific LAN IP address. If your server runs on 192.168.1.50 than traffic to your WAN IP address port 80 is forwarded to 192.168.1.50 port 80. That way your HTTP server can be reached from the internet. As you can only configure a fixed IP address in port forwarding it is recommended that the server uses a static IP address and not DHCP as in the latter case the IP address may change over time...
    O.K. so much for networking. I hope that makes things a little clearer and you can verify that your setup is how it is intended to be.
    I suggest the following: on the router's security page there is an option to block WAN requests. Remove the check if it is set (meaning: do not block). After you did that change you should be able to ping your WAN address (e.g. ping xxxx.dyndns.org) from the internet. That way we know that it is on the correct address.
    Also on the Administration page make sure that remote management is disabled (should be like that per default) or that the management port is NOT 80 but for example 8080. What is your your UPnP settings on the same page?
    O.K. that should be enough for the moment...

  • Request timed out because there has been no reply from the server in 600000

    Issue:
    Request timed out because there has been no reply from the server in 600000
    Scenario:
    1. All the crystal reports are designed by using Crystal Report 2008 Version -- 12.3.0.601
    2. All reports are uploaded to CMC (SAP Business Objects Enterprise XI, Product: 12.1.0)
    3. using Front-End .net Winform
    4. Crystal Report is binding is done using Business View Manager (since having more than one databases)
    5. Business View Manager Connects to Oracle using "Oracle Server" connection
    6. Loading reports as follows
    string queryString = string.Empty;
    SessionMgr sessionMgr = new SessionMgr();
    EnterpriseSession enterpriseSession = sessionMgr.Logon(userName, userPassword, serverName, authType);
    EnterpriseService enterpriseService = enterpriseSession.GetService("InfoStore");
    InfoStore infoStore = new InfoStore(enterpriseService);
    enterpriseService = enterpriseSession.GetService("PSReportFactory");
    Object psrfObject = enterpriseService.Interface;
    PSReportFactory psReportFactory = (PSReportFactory)psrfObject;
    queryString = "Select SI_CUID, SI_ID, SI_NAME, SI_PARENTID From CI_INFOOBJECTS " + "Where SI_PROGID='CrystalEnterprise.Report' " + "And SI_ID=" + ReportId;
    InfoObjects infoObjects = infoStore.Query(queryString);
    InfoObject infoObject = infoObjects[1];
    ReportDocument crDoc = new ReportDocument();
    crDoc.Load(infoObject, enterpriseSession);
    7. All the reports are getting loaded properly and i am able to dynamically set the report parameters
    8. After executing report, some of the reports take more than 10 minutes, due to which shows following error
    Request timed out because there has been no reply from the server in 600000
    Note i have done following:
    1. I have checked stored procedure running through oracle for more than 10 minutes (1 hr, 2 hrs)
    2. Tried simply running crystal report without front-end running perfectly more than 10 minutes (1 hr, 2 hr)
    3. When i run .net winform application for specific reports which takes long time, gives "Request timed out because there has been no reply from the server in 600000"
    Also i have done lot much R&D and spent almost weeks to get resolution but not getting any solution out of it, please help me in this case
    HKEY_LOCAL_MACHINESOFTWAREBusiness ObjectsSuite 12.0Report Application ServerClient SDKCorbaAdapterWaitReplyTimeout = 600000 and HKEY_LOCAL_MACHINESOFTWAREBusiness ObjectsSuite 12.0Report Application ServerInprocServerEnterpriseRequ
    AS per following URL
    Session timeout
    1. Log into Central Management Console
    2. Go to server,right click on Crystal report processing server and select properties,change the idle connection time out to 60 minutes
    3. Also right click on crystal report cache server and select properties ,change the idle connection time out to 60 minutes
    4. Restart Crystal Report Processing Server and Crystal Report Cache Server
    5. Change the session time out to 60 minutes in web.xml of INfoviewApp,InfoViewAppAction,PlatformSerivces and CrystalReports.
    6. Navigate to the following location
    <BO Install Dir>Business ObjectsTomcat55webappsInfoViewAppWEB-INF
    7. Edit the web.xml in notepad and search for the below lines.
    <session-config>
    <session-timeout>20</session-timeout> <!-- 20 minutes for session objects -->
    </session-config>
    8. Increase the Session-Timeout parameter to 20 to 60 minutes in web.xml . Save this file
    9. Repeat the same for the web.xml file in the InfoViewAppActions folder in <BO Install Dir>Business ObjectsTomcat55webappsInfoViewAppActionsWEB-INF
    10. Repeat the same for the web.xml file in the PlatformSerivces folder in <BO Install Dir>Business ObjectsTomcat55webappsPlatformSerivcesWEB-INF
    11. Repeat the same for the web.xml file in the CrystalReports folder in <BO Install Dir>Business ObjectsTomcat55webappsInfoViewAppActionsWEB-INF
    12. Restart the tomcat server
    Still i am getting same error, please help me, if you have any idea, clue with respect to this error on winform

    This error is specific to RAS. The default CORBA request timeout is 10 minute = 600000 ms. When the RAS SDK does not get the reponse back from RAS server in 600000 ms it throws this message. Why it works in InfoView\CMC what I believe you refer to as "Front End' application is because InfoView\ CMC don't use RAS.
    1. First make sure that a smaller report wich runs pretty fast ( 1-2 min) works. This will confirm that there is no connectivitiy issues between RAS and RAS SDK.
    2. If you get the efrror for every single report, even the smaller ones, make sure the box running RAS and RAS SDK code( in case they are 2 different) can ping each other with IP, shortname and FQDN. If there is a firewall between them, the RAS port needs to be opened for bidirectional communication. By default RAS chooses a random port for communication with SDK but within CMC you can configure it to use a specific port and open it.
    3. If the issue is specific only to reports that are long running, typically more than 10 minutes, then you need to inclease the CORBA timeout to a value more than what the reports typically would take to process. This is done on client code side or IIS in this case.
    Here are the steps:
    Make the following changes on the application server/system.
    Open RegEdit by going to Start > Run and typing in regedit.exe. Then click Ok.
    Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Report Application Server\Client SDK\CorbaAdapter
    Change the value of SendRequestTimeout(ms) to 100000.
    Change the value of WaitReplyTimeout(ms) to 6,000,000 ms. The default value is 600,000 ms and may not be long enough.
    Restart IIS by going to Start > Run and typing in iisreset. Then click Ok.
    Retry the failing application.
    See note:  1296656
    This error should be easy to fix
    Edited by: Aasavari Bhave on Feb 2, 2012 11:20 AM

  • How to store the data coming from network analyser into a text or excel file

    Hii everyone
    I'm using Agilent 8719ET network analyser and wish to store the data coming from netowrk analyser into a text file/ excel file.
    Presently I'm able to get the data on Labview graph using GPIB . Can anyone suggest how to go ahead after collect data sub vi. How can the data be stored into a file apart from showing on the graph?
    Attached is the vi for kind consideration...
    Looking for help
    Regards
    Rohit
    Attachments:
    Agilent 87XX Series Exceed Max Meas.vi ‏43 KB

    First let me say that your code really looks pretty good. The data handling could be made more efficient by calculating the number of datapoints that are going to be in the completed dataset and preallocating the entire array -- but depending upon your answer to my questions, the logic in the lower shift register may be going away - so we won't worry about that right now.
    The thing I need to know before addressing the data storage question is: Each time you call "Collect and Display Data.vi", how many element are in the array? Are you reading single data points, or a group of data? (BTW: if the answer to that question is obvious based on the way the other VIs are setup, I don't have the drivers so I can't tell what the setup values are.) Second, how fast does the loop iterate? Are we talking msec per loop?, seconds? fortnights?
    The issues here are two-fold: how much data? and how fast is it coming? The answer to these will tell you how to save the data.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Request timed out because there has been no reply from the server

    Hi,
    I am using "Embedded report application server 11.5".
    When i am going to launch report with the help of above mentioned server i am getting "Request timed out because there has been no reply from the server for more than 600,000 milliseconds" error.I have already huge data for passed parameter
    Steps that i followed:
    1)I have set unlimited jobs in server.
    2)In registry entry i have set 10,00,000 miliseconds insted of 6,00,000 miliseconds.
    Can anybudy please provide me some solution for this.
    Regards
    Vishal

    See here if it's still an issue
    Re: which registry setting to change for long running reports

  • How to insert data coming from 2 different file adapters in to one DB adapt

    Hi
    i want insert data in to database containing two diffferent tables, so i imported tables in to DB adapter by creating relation ships.But, data for two tables are in xml format & two are in different locations.So, i used 2 file adapters to get data from 2 different & i used BPEL(Define service later) Service. now in bpel i used receive activity to receive one file adapter data ( i checked create instance in receive) then used transform activiy for tranformation & finally invoke activity to invoke DB adapteer........similarly i repeated sequetially to 2 file adapter, by keeping 2nd receive(no need to check create instance) next to invoke.*Problem is after deployment finished only data coming from 1st receive is inserting to the table...& 2 nd receive not working it showing as Pending & showing as Asynchronus Call back inte console*
    I configured all the adapters perfectly..........Can any one can help me how to Commit 2 nd receive to insert data in the 2nd table
    Regards,
    jay

    Thank u both for ur replay.........
    I am doing this in 11g there is no problem regarding transform activity.
    My requirement is
    two different files from two different folders in a drive & we can't use one file adapter bcoz both have different columns(only few are common columns) so we use two different xsd's .So, i am using two file adapters to insert in database having two different tables with respect to two different files data coming from two file adapters. i am using one DB adapter to insert bcoz both tables are in same database with relationships & i used BPEL(define service later) .
    NOW PLEASE SUGGEST ME THE FLOW IN BPEL TO INSERT BOTH FILES IN THERE RESPECTIVE TABLES IN DATABASE.
    The flow i did 1st file adater--->receive--->transform---->invoke----->DB adapter.....Then again repeating this as keeping 2nd receive below 1st invoke
    2nd file adapter-------->2nd receive---->2nd invoke------>same DB adapter
    MY problem is only data coming from 1st process is inserting & 2nd one is not working as i discussed earlier........I USED READ FILE OPTION, UNCHECKED DELETE FILES OPTION & SET DIFFERENT POLLING FREQUENCY FOR BOTH FILE ADAPTERS.
    I tried to set correlation but it is not working & later tried i kept non-blocking invoke as TRUE in DB adapter also didn't work...........also i tried this transaction property in bpel component _<property name="bpel.config.transaction"_
    many="false" type="xs:string">required / requiresNew</property>...............BUT NO CHANGE...........
    Regards,
    jay
    Edited by: 910162 on Apr 5, 2012 12:38 AM

  • How can i use an ao card (pci 6723) to output data and to trigger an ai o acquire the data coming from the ao card?card (pci 6254) t

    Hello
    I am trying to perform AO (pci 6723) and to trigger my AO card (pci
    6254) to read the data coming from the AO card. I am using LV7,1,
    win2000.
    Is an RTSI cable necessary or I can connect the trigger signals externally ?
    I am using the LV example " multi function - synch ai-ao.vi" but i can't for some reason configure the trigger lines.
    thank you in advance for your time.
    Yiannis

    Hello Yiannis,
    If I understand you correctly, you want to synchronize your analog input and analog output that are started by a trigger on the analog input board. If you don't want to use the RTSI lines, your best bet is to export the AI Sample Clock and then read it in to the AO board. There is an example on ni.com called DAQmx - Synchronized AIAO Shared Clock. It appears to be having techincal issues so I have attached the example below. To export ai/sampleclock, use DAQmx Export Signal.vi after Get Terminal Name with Device Prefix.vi. Export Sample Clock to PFI3 (There are only connections between the sample clock and PCI3/4/8/9). Connect PFI3 on your AI board to PFI0 on your AO board (with a wire). Then change the source for the AO Timing.vi to Devx/PFI0. If you want to do triggering, stick the DAQmx Trigger.vi between the Timing property node and the DAQmx Start.vi on the AI task. I have shown how to do this in the modified version below. Please take a look at it and let me know if you have any questions. If you still get an error please take a screenshot of it and post to the forum. Have a great day!
    Sincerely,
    Marni S.
    Attachments:
    Synchronized_AIAO_Shared_Clock[Modified].vi ‏140 KB

  • No response from web server after a process ran for 1-2 minutes

    Hi,
    I have a proven pl/sql code, it took about 2+ minutes to complete in sqlplus.
    But when I created a button to process the exactly same code in APex application, the process runs about 2 minutes and
    applications bombs with this msg "No Response from web server".
    Has anyone gotton this msg before?
    Thanks,
    Julie

    Hi Julie,
    See this thread - it may had some extra considerations for you: OHS Webserver Timeout for long running requests
    Do you know if your error message is returned at a fixed time each time? You could test this by creating a procedure that sleeps for X amount of time and then vary X to see if you can find a cutoff point for losing the connection.
    Also - I assume that your process keeps running on the database, despite the webserver connection being lost?
    If it's not a limitation in your httpd.conf file (the default is 5 mins as others have pointed out), then perhaps your network colleagues have set something in your network configuration to kill connections longer than a certain period of time? This is what happened in my case.
    Hope this helps.
    Alan

  • How to reschedule a Back ground job in Normal ABAP from Web Dyn Pro abap application??

    Hi Experts,
    How to reschedule a Back ground job in Normal ABAP from Web Dyn Pro abap application??

    Can you give us some more information? Background jobs primarily don't have anything to do with Webdynpro.

Maybe you are looking for