Hi,
I am developing an Asynchronous Server (see closing connections thread)
based on Brian McAllisters example asynchronous server
(
http://kasparov.skife.org/blog/src/java/grizzly-arp-basic.html). Since
upgrading to the 1.8.2 jars to solve the out of memory issue my code no
longer compiles. It seems DesaultProcessorTask has disappeared. This is my
existing code:
public class OSRServerAsyncFilter implements AsyncFilter
{
private String CALLBACK_KEY = "";
public OSRServerAsyncFilter(String callback_key)
{
CALLBACK_KEY = callback_key;
}
/*
* (non-Javadoc)
*
* @see
com.sun.grizzly.http.AsyncFilter#doFilter(com.sun.grizzly.http.AsyncExecutor)
*/
public boolean doFilter(final AsyncExecutor executor)
{
final AsyncTask asyncTask = executor.getAsyncTask();
final AsyncHandler asyncHandler = executor.getAsyncHandler();
final DefaultProcessorTask processorTask = (DefaultProcessorTask)
executor.getAsyncTask().getProcessorTask();
//This handles the callback from the disconnected task
processorTask.getRequest().setAttribute(CALLBACK_KEY, new Runnable()
{
public void run()
{
asyncHandler.handle(asyncTask);
}
});
//This puts the processorTask(Connection info) into the request
object for later use.
processorTask.getRequest().setAttribute("processorTask",processorTask);
processorTask.invokeAdapter();
return false;
}
}
How do I set up the call back and gain access to the connections without
DefaultProcessorTask?
Thanks,
Mark.
--
View this message in context: http://www.nabble.com/1.8.2-What-happened-to-DefaultProcessorTask-tp18467090p18467090.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.