tags:

views:

190

answers:

0

Hi,

I'm using a Bayeux server implementation for Netty and the latest version of dojoX cometd. When I refuse a subscription a /meta/subscription message is sent with successful set to false. Response:

[{"channel":"/meta/subscribe","clientId":"abf5fb2408bf4f8e","successful":false,"subscription":"/badChannel","id":"3","timestamp":"2009-08-26T12:08:40"}]

In response to this, dojoX library sends a disconnect request followed by connect request. Should it this be the behaviour? I believe that it would make sense to use the already existent callback (http://api.dojotoolkit.org/jsdoc/1.3/dojox.cometd.Connection.subscribe, example 4) to notify the clients of the subscription failure.

Is the observed behaviour the correct one? How should I handle the unsuccessful subscription? Does my proposal make sense?

Thanks,

 Luís M. Costa