Announcement Announcement Module
Collapse
No announcement yet.
Application Context from HttpSessionListener Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Application Context from HttpSessionListener

    Hi,
    What's the best way to access my application context from a HttpSessionListener?

  • #2
    I don't know about best way, but one way should be:

    HttpSessionListener > HttpSessionEvent > HttpSession > ServletContext

    then

    myServletContext.getAttribute( org.springframework.web.context.WebApplicationCont ext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE );

    Comment


    • #3
      Not yet ready, but might be of interest:

      http://opensource2.atlassian.com/pro...browse/SPR-437

      Comment

      Working...
      X