glassfish_at_javadesktop.org wrote:
> Hi JFA,
> Thanks for the prompt response. I was trying to do the same thing which you have explained before posting my initial query in this forum. But not able to get the notification sent over to client.
> I did following for the experiment,
> 1. I took your chat application with Dojo
> 2. Added one more servlet called ChangePusher
> 3. I added following code in the doGet and doPost methods
> CometEngine cometEngine = CometEngine.getEngine();
> CometContext cometContext = cometEngine.getCometContext(contextPath);
> cometContext.notify("Got Message from ChangePusher" + info);
> here, contextPath="pmschat" I modified in the CometdServlet's init parameter.
>
> Pls look at the attached files for web.xml and my new servlet whcih try to push data to the cometcontext.
> I believed that when i invoke ChangePusher servlet, it will notify the cometcontext and hence all the client should be able to see the message. But it is not happening. Please let me know, if i miss something.
> Thanks in advance
The attachment haven't made it. Can you send it to me directly: jfarcand
at apache.org
Thanks!
-- Jeanfrancois
> [Message sent by forum member 'sendtopms' (sendtopms)]
>
> http://forums.java.net/jive/thread.jspa?messageID=271615
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>