users@grizzly.java.net

Re: comet context question

From: Cam Bazz <cambazz_at_gmail.com>
Date: Wed, 2 Jul 2008 04:27:07 +0300

Salut Jean,

CometContext<?> context =
>> CometEngine.getEngine().getCometContext("/YBZ-war/tS");
>> context.notify(null);
>>
>
I got the snipped from the trunk, possibly yours. (except the static context
"/YBZ-war/tS", that one is mine)

>

Not necessarily. When calling with null, your CometHandler.onEvent() will be
> called, and the CometEvent.attachment() will return null. I suspect peoples
> are doing that to resume a connection like:
>
> public void onEvent(CometEvent event){
> cometContext.resumeCometListener(this);
> }
>
> Hence the event.attachment() is never called.
>

 hmm. I am a bit confused with this one. I can understand the
.resumeCometListener(this)

but, what is the event.attachment() ????