• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is LightWeight Container  RSS feed

 
Jessica James
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I want to know the meaning of Lightweight container..
Spring is reffered as a lightweight container and EJB is a heavy weight one.. why it's called so..

Can you people help me out..
 
Chris Stehno
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A lightweight container is one that has few (or fewer) additional requirements such as required 3rd party libraries, servers, or other services.

Spring is a lightweight container because you can just use it. Set up an application context and configure some beans.

EJB requires a Java application server like JBoss or WebLogic to manage all of the EJBs and other supporting technologies (JNDI, RMI, JMS, DB, pooling, etc)... therefore it is considered "heavy".

Each has its place, though heavy containers seem to be less favored these days since in many cases they are overkill.

I hope this helps.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jessica, so that is your real name? I am sorry someone took your name for their "film" career. You must get stopped all the time.

Mark
 
Jessica James
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Chris
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!