i might be totally missing something - but dont you need a special servlet container that maintains open socket separate from threads by using nio? like jetty 6? and then once you have that you need to use that servlet container's special api to do this?

with the current architecture if you have a hundred clients doing comet you will have a hundred threads - not so good.

-Igor


On 8/25/06, Lorin Metzger <[EMAIL PROTECTED]> wrote:
Eelco Hillenius wrote:
Hi,

COMET is not implemented as a core feature at this time.

Do you have a specific use case where you would like to use it for?
That might be a good start to investigate the options.
One use case would be, a application with a small group of users.  The users have a page where they can add/remove data (Spring/Hibernate backend), and also see the existing entries in a table on the same page.  When one user adds/removes data I would like to be able to push updates out to update the table of existing entries for all the other users.


That being said I would like to build something as generic as possible.  I realize the data/_javascript_ that server pushes out will have to be custom for each specific use case, but it would be nice to have an API somewhat like DWR, that allows you to get all the sessions for a particular page, and the push out updates. (i.e.)


Collection sessions = WebContextFactory.get().getScriptSessionsByPage("/index.html");
DwrUtil util = new DwrUtil(sessions);

util.setValue("message", "Hello, World!");

I've experimented with (and had limited success) placing a ServletFilter in front of the wicket servlet, and pulling off request that had certain attributes, and blocking them, until new data was available (Very similiar to the Jetty 6.0 Continuation chat application example). 


At this point I'm really trying to get a sense of what the best way is to create a generic API similar to above, that I can later apply to specific solutions.   Is using a ServletFilter the right approach?   Can you think of another way that provides better cohesion with wicket?



Thanks,


-Lorin




Eelco


On 8/24/06, Lorin Metzger <[EMAIL PROTECTED]> wrote:
Hi,


I was searching the mailing lists and noticed a few comments about
Reverse Ajax and COMET. Mainly jokes about who would ask about it first
:) . Has anybody made any serious attempts to add DWR like reverse-ajax
support to wicket?


If not does anybody have any suggestions on what the best/*right* way
would be to add this type of feature to wicket's framework?



Thanks for any advice you can give.



-Lorin

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to