I use grizzly API with Jboss 4.2.2 it compile but it will not call onEvent
because comethandle in handle in null
in following code..
public void notify(final CometEvent cometEvent,final Iterator<CometHandler>
iteratorHandlers)
throws IOException {
if (!spreadNotifyToManyToThreads && !blockingNotification &&
threadPool != null ){
threadPool.execute(new Runnable() {
public void run() {
System.out.println(iteratorHandlers.hasNext()); //
It is false here
//so it will not entered in while loop..
while(iteratorHandlers.hasNext()){
CometHandler handler = iteratorHandlers.next();
System.out.println("Handler "+handler);
notify0(cometEvent, handler);
}
}});
}else {
while(iteratorHandlers.hasNext()){
notify(cometEvent,iteratorHandlers.next());
}
}
}
please suggest me
--
View this message in context: http://grizzly.1045725.n5.nabble.com/Can-I-use-Jboss-4-2-2-for-comet-using-Grizzly-API-tp5116558p5116558.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.