On 05/23/2009 12:30 AM, Charlie wrote: > Hey all > > I'm building a gwt+php application and I need my client side updated > every time a database is updated with new data. The way it works right > now is I'm sending an httprequest to a php script which keeps querying > the database until there's new data, when there is it sends it back to > the client and the client makes a recursive call from > "responseReceived" to the same function which makes the httprequest > once again and so on it goes.. > > Is there any better way to do this? >
The answer depends on the problem you're trying to solve. There are server push technologies like comet. GWT support for comet has been discussed frequently on this list. The fundamental issue is that such a design will wear a groove into the disk where the database is stored. Database write notification design is highly application dependent. To repeat: if you can tell us what problem you're trying to solve, there may be other answers (although tangential to GWT and not of much interest to this list). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
