Narayana Tutorial

Online Java Tutorial Blog

What is difference between BeanFactory and ApplicationContext in Spring?

BeanFactory

Does not support the Annotation based dependency Injection.

ApplicationContext

Support Annotation based dependency [email protected], @PreDestroy


BeanFactory

Does not Support

ApplicationContext

Application contexts can publish events to beans that are registered as listeners


BeanFactory

Does not support way to access Message Bundle(internationalization (I18N)

ApplicationContext

Support internationalization (I18N) messages.


BeanFactory

Doesn’t support such JNDI access, EJB integration, remoting

ApplicationContext

Support many enterprise services such JNDI access, EJB integration, remoting.


BeanFactory

By default its support Lazy loading

ApplicationContext

its By default support Aggresive loading.


 

Narayanaswamy

Hello! I am Narayanaswamy founder and admin of narayanatutorial.com. I have been working in IT industry more than 7 years. NarayanaTutorial is my web technologies blog. My specialties are Java / J2EE, Spring, Hibernate, Struts, Webservices, PHP, Oracle, MySQL, SQLServer, Web Hosting and Website Development.

I am a self learner and passionate about training and writing. I am always trying my best to share my knowledge through my blog.

Leave a Reply

Narayana Tutorial © 2018 Frontier Theme
Show Button
Hide Button