fired. What can go wrong here please?
> On Thu, May 31, 2012 at 10:54 AM, Veeramani <
kveeram...@gmail.com> wrote:
> > When the JSP page which is subscribed to a channel gets reloaded,
> > there are multiple requests fired hitting the server as if load
> > testing is happening.
>
> > The following is the code that is used in the jsp page.
>
> > dojo.require("dojo.io.cometd");
>
> That's not the right require() for cometd.
> No idea what you're requiring here, but for CometD is
> require("dojox/cometd") (Dojo 1.7+).
>
> > dojo.io.cometd.init({}, "/bayeux/cometd");
>
> URL must be absolute.
>
> > dojo.io.cometd.subscribe("/callback/channel/jsp", null, "onUpdate");
>
> Doing a subscribe just after init() is wrong.
>
> Please read the documentation about the API usage athttp://
docs.cometd.org/reference/#javascript
>
> Simon