polling

Offsetting one of the disadvantages of an XML file...

Hi, I'm using an XML file to store a set of rules that my program, a service will read and apply. Obviously, as and when I add new rules to the XML file, i will have to bounce the service so that the changes can be effective. Is there a way I can keep 'polling' the XML file every 30s or so to avoid having to bounce my service, in the e...

How can I make my javascript chat polling script be more efficient?

For some reason this check for new chat messages causes a larger amount of browser (and to some extent server) load than I would expect. Anyone see any ways that I can make it more efficient, to lessen the load? // Begin the cycle of refreshing the mini chat after the standard delay. function startRefreshingMinichat(){ var secs = 3...

Waiting for invokeLater() to be called

Is there a more elegant way to do what I'm doing below? That is, is there a more elegant way than polling and sleeping, polling and sleeping, and so on to know when a Runnable.run() method has been called via invokeLater()? private int myMethod() { final WaitForEventQueue waitForQueue = new WaitForEventQueue(); EventQueue.invok...

Watching a variable for changes without polling.

I'm using a framework called Processing which is basically a Java applet. It has the ability to do key events because Applet can. You can also roll your own callbacks of sorts into the parent. I'm not doing that right now and maybe that's the solution. For now, I'm looking for a more POJO solution. So I wrote some examples to illust...

JAX-WS Callback vs Polling mechanism for Asynchronous invocation

Basically, under what circumstances should Callback vs Polling be use when implementing asynchronous web services? What are the pros and cons of each?...are there any guidelines or metrics out there? -Callback being the mechanism where the client provides a callback handler to process the response when eventually acquired. -Polling bei...

Ajax function partially fails when alert removed

Hello. I have a problem in the following code: //quesry the db for image information function queryDB (parameters) { var parameters = "p="+parameters; alert ("hello"); if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new...

wamp appache - polling server continuously

I've heard polling the server is not the best of ideas. Let's say I make a client-server application. A simple game for example. Where each client polls the server every half a minute. How many clients is it possible to have before it overlaods a wamp server? Basically how robust is Apache for this kind of stuff? Getting a request, aggr...

Polling versus socket servers for online Flash games

Hi, I want to make an online flash game, it will have social features but the gameplay will be primarily single-player. For example, no two players will appear on the screen at once, the social interaction will be through asynchronous messages, there won't be real-time chat or anything. Much of the logic would happen in the client, the...

C++ Storing variables and inheritance

Here is my situation: I have an event driven system, where all my handlers are derived from IHandler class, and implement an onEvent(const Event &event) method. Now, Event is a base class for all events and contains only the enumerated event type. All actual events are derived from it, including the EventKey event, which has 2 fields: (...

What is the best BlazeDS polling method for an low bandwidth network?

I am wondering BlazeDS polling configuration, simple or long polling, is the best for a low bandwidth network. ...

Ajax/PHP - should I use one long running script or polling?

Hello, I have a PHP script that is kicked off via ajax. This PHP script uses exec() to run a separate PHP script via the shell. The script that is called via exec() may take 30 seconds or so to complete. I need to update the UI once it is finished. Which of these options is preferred? a) Leave the HTTP connection open for the 30 se...

Comet VS Ajax polling

I need to create a chat like facebook chat. With Comet I need more memory to keep the connection. With Ajax polling there is a latency problem if I send request every 3-4 seconds. So... If the latency ( 3-4 seconds ) doesn't matter, Is Ajax Polling better for my case ? ...

Live connection between server and client in a web page

How do I implement a real time updating /live html streaming method in applications like FriendFeed, Stackoverflow, Blip.fm ? Is it done using a jQuery/Ajax request from client to server every X seconds? (FriendFeed is like every 1 second) or there is another technique? ...

Does anyone know of any good open source voting software?

I'm looking for a voting system that we can implement at work amongst our developers. We need something that allows developers to submit ideas about what we can do to improve our development practices (amongst other things) and then have all the developers vote on the ideas to give everyone an idea of what ideas we should attempt to imp...

Best way to keep a .net client app updated with status of another application

I have a Windows service that's running all the time, and takes some action every 15 minutes. I also have a client WinForms app that displays some information about what the service is doing. I'd like the forms application to keep itself updated with a recent status, but I'm not sure if polling every second is a good move performance-wis...

PHP auto refresh page without losing user input

I'm working on a PHP collaboration software project. I have a page that shows the latest updates from other users who are adding content to the database, but also has a form input to allow the user to enter text. I am currently using this code to refresh the page automatically every 30 seconds: header('Refresh: 30'); The problem is ...

custom code to run on server on every silverlight poll. (polling duplex)

Hi, Is it possible to run custom code when the silverlight client polls everytime to the server to keep the connection alive. My application is a implementation of the comet style polling duplex communication which is available from silverlight3. I found that it sends the following Soap message on every poll. <s:Envelope xmlns:s="http:...

iis server returns 500 internal server error, while polling. but works on localhost.

I am using the polling duplex model for my silverlight app and wcf communication. The wcf service pushed data to the silverlight app. While the app runs perfectly in my local environment and local iis (xp, iis5.0), it has a very unpredictable and abrupt behavior when i deploy it on my test server on IIs 7. The default for the 'ServerPo...

Monitoring DB: MySQL

Hi, I am writing to ask for advice. I have to monitor certain "insert" on a mysql db. In what way is more convenient to do this? The application uses Servlets and MySQL. Thank you very much ...

Flash Caching Issue????

Hi Guys I am having the following problem: I have a WCF service that checks a database table and returns the results vis JSON to a flash app. The flash app polls the WCF service every 2 seconds until the records are ready. The issue is that flash seems to be caching my requests, as after the first request the service never gets ...