Difference between Core Container and J2EE Container | Code Factory


Donate : Link

Medium Blog : Link

Applications : Link

This image has an empty alt attribute; its file name is image-1.png

Spring Tutorial Index Page: Link

Core ContainerJ2EE Container
BeanFactory will create object when we call .getBean() methodApplicationContext will create object before calling .getBean() method
BeanFactory is like w/o <load-on-startup>ApplicationContext is like w/ <load-on-startup>
BeanFactory container is lazy containerApplicationContext is early container
  • * IOC create instance in JVM on first user request (BeanFactory) or while loading (ApplicationContext) when scope is singleton. If scope is not singleton then ApplicationContext not create objects on loading.

Leave a comment