File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Limitation on Spring bean definitions

 
pavankumar shetty
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • 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).
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic