Server Sent Events (Tutorial 02 – Custom Server Sent Events + Singleton Session Bean + GlassFish 4)
Articles,  Blog

Server Sent Events (Tutorial 02 – Custom Server Sent Events + Singleton Session Bean + GlassFish 4)


What is a singleton session bean? What is the JavaScript EventSource object used for? How to pass parameters to a servlet? How to add an event listner to an event source? What is eager initialization for a session bean? How to write a session bean method that is invoked on a regular interval? How to set the content type of a response to ‘text/event-stream’? How to retrieve request parameters in a servlet? How to inject and use a session bean in a servlet? Why flush the buffer on an HttpServletResponse?

4 Comments

  • Pedro Sakki

    Funciona igual para netbeans?  y porque lo ejecuto y lo debugueo y si hace todo, pero no puedo ver los datos, sera que chrome no soporta eventsource?

  • zaneacademy

    Server Sent Events Tutorial 04 @ https://youtu.be/E8iszna0MMc

    Server Sent Events Tutorial 03 (JSON Data + Java Servlet + Singleton Session Bean) @

    https://youtu.be/D_0yUwr5pcU

    Server Sent Events (Tutorial 01 – w/ Java Servlet and Tomcat 7 Web Server) @

    https://youtu.be/rhCKCKD0KnA

Leave a Reply

Your email address will not be published. Required fields are marked *