Announcement Announcement Module
No announcement yet.
session scoped beans in non web module Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • session scoped beans in non web module

    My application consist of several bundles (one web module, let me call it A and several normal bundles B,C,D...)
    Is there a way to have session scoped beans in B module ? I can have my custom scope based on authorization information from spring security but I want to know if there is a simpler way.
    thanks in advance for your help.

  • #2
    Unfortunately, it isn't possible to use session-scoped beans in one of your normal bundles. The use of session (and request) scoped beans requires a Web-aware application context which your normal bundles will not have. There's some
    more information about this in Spring's reference documentation.

    Your solution of using a custom-scope for this sounds like the best solution at the moment.

    We're very interested in modular Web applications, and your requirement is an interesting one. It'd be great if you could open a story in our JIRA that describes your use case.