Servlet Session update from an EJB


Web tier: servlets, JSP, Web frameworks: Servlet Session update from an EJB

  1. Servlet Session update from an EJB (1 messages)


    I'm having this design challenge and I hope you guys have had the same scenario before:

    All my app. state are contained in a servlet session-scope bean. On the EJB layer we use JMS to handle asyncronous events and some MDB to do this asyncronous logic. But some of this logic change stuff on the presentation layer that had to be updated. Is there a way to notify the presentation layer (servlet) that the state has changed and that it has to be updated?. It's crucial that the mecanism used be as fast as possible, we dealing whith content that appears in every page requested of the app.

  2. Servlet Session update from an EJB[ Go to top ]

    Check if you can use HttpSessionAttributeListener. Bind an
    object to the session and get notification to the servlet
    about the change.
    Hope this helps.