users@grizzly.java.net

Connecting server to a client in an asynchronous way

From: Alaska <bagirin_at_gmx.de>
Date: Mon, 13 Jul 2009 09:02:21 -0700 (PDT)

Hello!

I"m running the grizzly-nio-framework (v1.9.14) in a filter/protocolChain
mode.

I"m storing in so called "clientConnectionHandler" a selectionKey and a
selectorHandler (that I can get from the context) and I use it for replying
to the client. In the postExecute method I do a clean-up and remove the
request and the "clientConnectionHandler".

Now I"d like to be able to reply to a client like "the request is
processing" to return true to the execute method and as soon as the server
processed the request (it can take a lot of time) to have a mechanism for
connecting server the client and to send the data to it.

Now I"m facing the problem that if the server is ready to reply to the
client, the postExecute method has been called already and the
"clientConnectionHandler" has been removed already.
How can I overcome this problem?

Thanx in advance,
alaska
-- 
View this message in context: http://www.nabble.com/Connecting-server-to-a-client-in-an-asynchronous-way-tp24464520p24464520.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.