• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Limitation on Spring bean definitions

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am a new to springs. Is there is any limitation for the number of beans to be defined in an application and will there be any performance issue if the number of beans defined in an application is more (May be around 250 bean definitions).
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll rephrase it.

Is there any limitation on the number of instances/objects that you can create in Java? It is the same thing. The Spring definitions is just that, a definition that tells Spring what to instantiate for you.

By default all beans are Singleton, which is a great thing. And Spring instantiates them when you create an ApplicationContext instance. So the creation of the ApplicationContext might take a little bit of time, but really very small, but no performance issues later. If you find performance issues, it is probably because of your Heap configuration. Which would be a performance issue for you whether you were using Spring or not.

Good Luck and enjoy your trip in learning Spring. My first lesson for you is it is just called Spring. There is no pluralization to it. No such thing as springs.

Also, as you are learning, please post your questions here, we love helping people out.

Mark
 
pavankumar shetty
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Mark
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic