You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by balachandra maddina <ch...@gmail.com> on 2009/05/06 09:13:09 UTC

Trouble Implementing CometProcessor

Hi All,

  Im trying to implement the comet chat example that is provided in tomcat
docs. its said that when a servlet implements CometProcessor interface then
when this servlet is called instead of calling the service method the event
method will be invoked. but after implementing the interface if i call the
servlet from browser with something like "http://localhost/app/chat", event
method was not invoked instead request goes to service method.

could anyone please let me know what shd be the client URL so that the event
method will be invoked instead of service method.

Thank you,
bala.

Re: Trouble Implementing CometProcessor

Posted by balachandra maddina <ch...@gmail.com>.
I just created a simple example implementing the CometProcessor interface
and seems the request is calling event method. i just need to work furthour
on this. sorry for the trouble.

Thank you,
bala.

On Wed, May 6, 2009 at 12:43 PM, balachandra maddina
<ch...@gmail.com>wrote:

> Hi All,
>
>   Im trying to implement the comet chat example that is provided in tomcat
> docs. its said that when a servlet implements CometProcessor interface then
> when this servlet is called instead of calling the service method the event
> method will be invoked. but after implementing the interface if i call the
> servlet from browser with something like "http://localhost/app/chat",
> event method was not invoked instead request goes to service method.
>
> could anyone please let me know what shd be the client URL so that the
> event method will be invoked instead of service method.
>
> Thank you,
> bala.
>