Hi,
unfortunately it won't work on JBoss, only on Glassfish.
If you stick to JBoss, you may want to look at project Atmosphere.
Thanks.
WBR,
Alexey.
On 01/03/2012 11:12 AM, mukesh7333 wrote:
> 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.