Since my last message, I have done the following:
Updated my onEvent() method to resume the CometHandler.
Updated my GlassFish version to 3.0.1 build 22.
Run asadmin with the args to setup comet support.
However, I still cannot get the sample code I posted to work.
I investigated this further by stepping through the code in NetBeans and I discovered that after
the cc.addCometHandler(handler) method is invoked, if I look at the CometContext object (cc)
properties, the handlers property (which is a ConcurrentHashMap) shows size=0. Thus, it appears
that no handlers were ever registered.
It seems to me that if the handler is never registered on the CometContext object there is
no way onEvent() can ever be invoked.
Any ideas ?
Thanks
Jake