get more information on adf apps do threading?
684254Dec 20 2009 — edited Jan 8 2010Can anybody point me to where to get more information on how ADF apps handle their threads in JDev 10g/ iAS 10.1.3.4?
I am have implemented the auto-suggest component that Duncan Mills adapted a while ago from Sun's JSF blueprints. I am trying to avoid doing a query for every keystroke. I have tried a couple of different things. Neither seems to have the effect I want. The first was altering the autosuggest component to use javascript that cancelled any outstanding requests but the latest.
The second was to switch the AjaxHandler to session scope from request, and create a timestamp attribute, which is updated by each request the ajaxHandler handles, whereupon I would sleep the thread and then see if the session timestamp had been updated (by another request/thread).
The problem arises when people just type a lot of stuff in the autosuggest field without regard to getting the autosuggest, then it ties up the backend doing queries.