Download
pushlets introduce n.
Skip this Video
Loading SlideShow in 5 Seconds..
Pushlets Introduce PowerPoint Presentation
Download Presentation
Pushlets Introduce

Pushlets Introduce

119 Vues Download Presentation
Télécharger la présentation

Pushlets Introduce

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Pushlets Introduce A comet framework Zhang Haipeng 2011-4-10

  2. Index • Comet • Pushlets • Applications • Other…

  3. What is Comet? • Comet is a web application model in which a long-held HTTP request allows a web server to PUSH data to a browser, without the browser EXPLICITY requesting it.

  4. HTTP

  5. Pushlets • An Free and Open Source HTTP-basedpublish/subscribe framework. • Pushlets are a servlet-based mechanism where data is pushed directly from server-side Java objects to HTML pages within a client-browser without using Java applets or plug-ins. This allows a web page to be periodically updated by the server

  6. Publish/Subscribe

  7. How to use pushlets??-- integration with your web app • Add pushlets.jar to your classpath • Add javascript to you web app • Config web.xml

  8. How to use pushlets??-- message receiver

  9. How to use pushlets??-- send msg with javascript

  10. How to use pushlets??-- send message with Java

  11. How to use pushlets??-- send message with java

  12. Displayer javaScript API