Announcement Announcement Module

JavaConfig forum decommissioned in favor of Core Container

As described at

key features of the Spring JavaConfig project have been migrated into the core Spring Framework as of version 3.0.

Please see the Spring 3.0 documentation on @Configuration and @Bean support:

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at
See more
See less
ScopedProxy Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • ScopedProxy

    I have started a new JSF project with Spring 2.5
    The annotation @ScopedProxy seems interesting. However I don't know how to use it. In my web application, I have various objects that exist on a per-session basis (such as user profile). I would like to make those objects available to some service bean @Service.

    Another question : Is SpringJavaConfig as reliable as Spring Core ? Should I prefer the use of <aop:scoped-proxy/> ?

  • #2
    JavaConfig has been used successfully in production, but please understand that it remains a pre-1.0 milestone release, so there are no guarantees.

    The majority of JavaConfig functionality has been ported to Spring Framework core for version 3.0, and is available right now with Spring 3.0M3. If you're just getting started with JavaConfig and have the opportunity to experiment with the Spring 3 milestones, this is the recommended approach.

    Also note that in Spring 3, @ScopedProxy is not there. Rather, you can use @Scope in a similar way. See the JavaDoc for details.