Hi All,
I am having issues using the cometd implementation in GlassFish. None of
the samples seem to work correctly for me. I've tried GF 3.1.1 and 3.1.2.
For example, with the chat demo, I can join by enterring a username and
clicking join. Then I can chat. But the messages I send sometimes show up
at the client, and sometimes do not.
Here's an example:
client:
message=[{"data": {"user": "joe", "chat": "rgte"}, "channel": "/chat/demo",
"clientId": "pVJUfQl3gExtwMs+IAhAJQ==", "id": "15"}]
server:
[{"channel":"/chat/demo","successful":true,"clientId":"pVJUfQl3gExtwMs+IAhAJQ==","id":"15"}]
client:
message=[{"channel": "/meta/connect", "connectionType": "long-polling",
"clientId": "pVJUfQl3gExtwMs+IAhAJQ==", "timestamp": "Mon, 14 Nov 2011
00:32:18 GMT", "id": "16"}]
server:
headers only 200 OK. No JSON message.
But I don't see my message at the client (I expected to see "rgte").
I am running a single client in a browser. I also have been running the
BayeuxExternalServlet. The messages that are sent from this servlet almost
never get to the browser client. One of maybe a hundred or so.
Note that I have comet running. It seems to be performing properly. But
cometd is the problem.
What could I be doing to cause this kind of behavior? I tried GF 3.1.1 and
3.1.2 (build 7). Same behavior.
Any suggestions would be greatly appreciated.
Thank you,
Joe