Brad Wood wrote: > Sounds like a lot of overhead. Instead of polling for changes, can the > change simply trigger a listener? (Not sure of your specific use for > this though).
basically, I want something to monitor a database table, and remove rows of data that have not been updated in more than 10 seconds. This is for my chat application. It's working fairly well, but when someone just closes their browser window, there's nothing to trigger them actually leaving the room. The application tracks their last request for updates from the server and updates their session in the database.. when they close the window, the timestamp begins to age... if it's more than 5-10 seconds old they're obviously not there any more (close browser, moved to another web page, lost internet connetivity). At any rate, I've decided to start with the DirectoryWatcher gateway and just rip a few things out... i've got the java file where I want it to be now but I can't remember how to compile things on the server =) Clearly I've got to install the java SDK so I actually *HAVE* a java compiler.. but not sure where to go from there. Most of the documentation seems to assume you know how to compile a java file into a class file and add it to a jar. =) Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232544 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

