Hi,
I try the comet-counter example in GlassFish v3 environment.
I find that I need to update the context-root as follows:
elliptic: /export/grizzly/src/trunk/examples/comet/comet-counter > svn
diff .
Index: src/main/webapp/javascripts/counter.js
===================================================================
--- src/main/webapp/javascripts/counter.js (revision 995)
+++ src/main/webapp/javascripts/counter.js (working copy)
@@ -1,12 +1,12 @@
var counter = {
'poll' : function() {
- new Ajax.Request('/demo/long_polling', {
+ new Ajax.Request('/grizzly-comet-counter/long_polling', {
method : 'GET',
onSuccess : counter.update
});
},
'increment' : function() {
- new Ajax.Request('/demo/long_polling', {
+ new Ajax.Request('/grizzly-comet-counter/long_polling', {
method : 'POST'
});
},
@@ -25,4 +25,4 @@
};
Behaviour.register(rules);
Regards,
Shing Wai Chan