dojo.io.bind for tomcat 6 comet implementation

Hi,
I have a tomcat 6 CometProcessor servlet which periodically sends messages
to the client page. Now I'm trying to create a html page with dojo
javascript which shows the received messages. But I don't find an working
example, and all my attempt lead to errors.
What is the right transport mode? XmlHttpRequest or IframeTransport?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070604/b9fa...

Comments

Hi,
I have a tomcat 6 CometProcessor servlet which periodically sends messages
to the client page. Now I'm trying to create a html page with dojo
javascript which shows the received messages. But I don't find an working
example, and all my attempt lead to errors.
What is the right transport mode? XmlHttpRequest or IframeTransport?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070604/b9fa...

On 6/4/07, Bernd Winterstein wrote:

dojo.io.cometd is the best bet, but I do not know how to use it.

James

The problem with cometd is, that it makes use of bayeux and json.
The tomcat comet servlet does not seem to have any such advanced
functionality.
I think have to use plain io.bind.
The problem is that I don't find the right combination of transport etc. to
get this working.

Any ideas?

2007/6/5, James Burke :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070605/5c8d...

Thanks a lot for your example.
I think my problem is that the tomcat 5 CometProcessor Servlet doesn't
support Bayeux and dojo cometd requires it. There is almost no documentation
for the tomcat comet support.
In firebug I see a single POST to my comet servlet. This stays active for
several minutes, and after this timeout I see the messages I have sent from
the server to the browser.

2007/6/5, Michael Jasnowski :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070606/adfc...

Hi,

Even i face the similar issues to get started with the client code.Could You
please share ure client and server code of Comet Servlet
Thanks in advance.

this development has just started,
http://svn.apache.org/viewvc/tomcat/sandbox/bayeux/

Filip

newUser wrote:

Back to top