Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9214997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:06:09+00:00 2026-06-18T02:06:09+00:00

I am using Spring 3.1 in a java web app Now, as per this

  • 0

I am using Spring 3.1 in a java web app

Now, as per this website–> http://tedyoung.me/2011/10/19/practi…rt-5-sessions/
I can use the following annotations for a Global Session scoped class..

Code:

@Component
@Scope(value="session", proxyMode=ScopedProxyMode.TARGET_CLASS)
public class UserPreferences {
....remaining code....

However, in my Java class, when I use the above annotations, I am getting this error in Eclipse IDE–>

ScopedProxyMode cannot be resolved to a variable

What am I doing wrong here? I basically want to use a specific object across global session – viz, across multiple controllers in my Spring MVC based web app.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:06:10+00:00Added an answer on June 18, 2026 at 2:06 am

    I think you are missing to import org.springframework.context.annotation.ScopedProxyMode.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Spring MVC 3.1 to develop a Java web app. I have
I'm using this tutorial: http://blog.springsource.org/2011/01/04/green-beans-getting-started-with-spring-mvc/ to run a Spring MVC app using spring's tool
I am developing a Java Web Application using JSF, Spring and Hibernate. I need
I'm using Spring Security 3.0.7 How can I get with java code the access
I had a Spring based java app that connected to PayPal using their Soap
I'm using Apache Derby with the Spring JdbcTemplate inside a web app running on
I am used to develop web applications in Java (Struts, Spring, JSP...). But now
I use Spring to configure my Java Web App and in my Spring configuration
In my java web app (using playframework ),I have a Customer having an Address
I'm developing a Java webapp using Spring, Spring Security, Tomcat and MySQL. Right now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.