(I've been away at JavaOne, and just catching up)
You can do this:
import org.directwebremoting.proxy.dwr.Engine;
Session s = // the script session(s) of the browsers to toggle active reverse ajax
Engine engine = new Engine(s);
s.setActiveReverseAjax(true);
Joe.
On Thu, May 8, 2008 at 10:34 AM, Nitin Thakur <
myegotrip@...> wrote:
Seems like i'm messing too much with connection limit problem. But, here goes
my query.
In my application, i do "dwr.engine.setActiveReverseAjax(true)" and
"dwr.engine.setActiveReverseAjax(false)" time-to-time to reduce the burden
of keeping one permanent connection for reverse ajax even if the client does
not need it.
I want my server also to be aware of this thing i.e, whether there is a
reverse ajax connection with a client or not. Explicitly Calling the server
is not a reliable approach. I want some sort of listener at the server end
which keeps track of when ActiveReverseAjax has been set true/false.
Otherwise, can somebody suggest my some way to set ActiveReverseAjax true or
false from server side only.
Plz somebody help me out.. Hey Joe, are you listening?
--
View this message in context: http://www.nabble.com/how-to-make-the-server-aware-of-ReverseAjax-tp17123768p17123768.html
Sent from the DWR - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...