• 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

Spring - Light weight?

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends,

I have just started learning Spring and I see lots of technical jargons saying Spring is light weight.

Well, what does it mean? Can anyone explain with simple example?

Thanks,
Nikesh
 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spring is Light weight means, it won't consume more memory while transactions. It use light weight resources (won't use any heavy threads and applets) for the request process.

One good thing about Spring is, you can use the selected jar file for your requirement. No need to use full set of Spring. You can develop complete application based on your requirement with Spring without depending on JAVA EE.
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lightweight compared to EJB. In EJB every enterprise beans are pooling, transactional by default. While in Spring we can make a bean transactional only when it's needed.
 
Ranch Hand
Posts: 686
Netbeans IDE Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nice answer. There are many aspects to it including testing. Coding will help :-)
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nikes Shah wrote:Hi friends,
Spring is light weight.



I'm working with Spring MVC, and it's quite headache for me, a lot of "hidden" DI and/or configuration. For example if we set something to true, some objects will be availabe, ready to use.

maybe my mind is not "spring" minded yet
 
Vyas Sanzgiri
Ranch Hand
Posts: 686
Netbeans IDE Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What IDE do you use?

It takes time to get used to Spring. May be you are thinking in terms of the framework you used earlier?
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

david tanu wrote:

Nikes Shah wrote:Hi friends,
Spring is light weight.



I'm working with Spring MVC, and it's quite headache for me, a lot of "hidden" DI and/or configuration. For example if we set something to true, some objects will be availabe, ready to use.

maybe my mind is not "spring" minded yet


Hm, what are "hidden" DI in Spring Web MVC? Could you please to give an example?
Anyway, this topic should be in Spring forum.
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nikes Shah wrote:Hi friends,
I have just started learning Spring and I see lots of technical jargons saying Spring is light weight.
Well, what does it mean? Can anyone explain with simple example?



This topic been discussed many time in javaranch under spring & application framework forum..
have a look this thread...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic