When the cometd client is initialized with a URL that does not point
to the origin it has been downloaded from, you have a cross-domain
communication.
The latest Cometd client (1.0.beta10) supports cross-domain
communication via JSONP; the current trunk also supports the
cross-origin specification.
The latest Cometd server also supports the JSONP transport and current
trunk also supports the cross-origin specification; I am not sure what
the Oracle CEP supports.
If the server does not support cross-domain communication in a proper
way, then you may have troubles.
This can only be discerned by Firebug logs of Wireshark logs. Can you
post those ?
Simon
--
http://bordet.blogspot.com
---
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless. Victoria Livschitz
On Thu, Sep 24, 2009 at 21:14, Luis Montes <mont...@gmail.com> wrote:
> How does the cometd server know what the JSONP callback function name
> parameter is? Is it something that dojo & comet have just agreed upon? Can
> it be specified if it doesn't match?
The client sends the callback name to the server. This is part of the
JSONP "hack".
Cheers,
On Thu, Sep 24, 2009 at 21:37, Luis Montes <mont...@gmail.com> wrote:
> Right. I was just wondering what keeps that parameter name synched up
> between what org.cometd.server.continuation.ContinuationCometdServlet
> expects and the parameter passed to it by dojox.cometd.init()
>
> Dojo's JSONP implementation dynamically names the actual function that
> should be called, but it has to let the servlet know the parameter name the
> function is set to.
>
> For example, twitter uses a callback parameter name of "callback". I'm
> sure dojo & cometd will stay consistent with the whatever they chose for the
> parameter name, but is it currently overrideable on the client and server?
dojo.io.script.get() accepts a parameter called "callbackParamName"
which we set to "jsonp" (hardcoding it in the cometd JS
implementation), while ContinuationCometdServlet uses a hardcoded
"jsonp" parameter name.
So the client has to send "jsonp" as a parameter name (not value!) for
the ContinuationCometdServlet to work.