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 8441897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:41:44+00:00 2026-06-10T08:41:44+00:00

I have this new mvc project where all beans are default scoped(no prototype or

  • 0

I have this new mvc project where all beans are default scoped(no prototype or session).
with single application context.

i want to know
by making all beans to be default scoped are we trying to achieve the whole application to be run in single thread?

if so will that make each httprequest(from multiple or same sessions) to be queued until the previous one completes?How to avoid such scenario any advice or link would be helpful.

I am relatively new to spring and java development.

  • 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-10T08:41:45+00:00Added an answer on June 10, 2026 at 8:41 am

    Because Spring beans are typically stateless, you can safely call them from multiple threads. That’s how your application works: there is only one instance of every controller, service, DAO, etc. But your servlet container (through Spring) calls these beans from multiple threads – and it’s completely thread safe.

    In fact in plain servlets the situation is the same – there is only instance of each servlet and it can be accessed by infinite number of threads. As long as this servlet is stateless or properly synchronized.

    Do not confuse Spring with stateless session beans in ejb that are pooled and each client gets its own instance from the pool.1

    1 – In fact that’s a bit dumb – since the beans are stateless by the definition, there is no point in pooling them and preventing concurrent access…

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

Sidebar

Related Questions

I have just created a new MVC 3 project and updated all the installed
I have a new ASP.NET MVC 3 project, and MVC and Razor are all
I am quite new with this MVC in ASP.NET. If I have a page
New to MVC, so hopefully this will be pretty simple. I have an HTML
I'm new to ASP.NET MVC so this could have an obvious answer. Right now
I have this code: app = new Application(); app.Visible = false; workbook = app.Workbooks.Add(1);
I have this problem: I want to generate a new source code file from
I have this very strange issue with my MVC 2 project. Often times, I'll
I'm working on a Spring MVC project, and I have unit tests for all
Okay. This is my company's customer portal, it's an MVC 2 project. We have

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.