JMX (Java Management Extensions) Question: Download JMX PDF

What are the various actions performed when an application context is created?

Tweet Share WhatsApp

Answer:

Here are 5 steps:
☛ Read bean file XML (or process annotations). Build internal "map" of beans and determine dependency tree.
☛ Post process the definitions - e.g. resolve ${variables}
☛ Allocate objects - dependency inject constructor args and invoke setter.
☛ Perform any initialisation - 3 approachs: @PostConstruct, init-method, InitializingBean
☛ Bean post-processors - e.g. wrap with proxy, @Required

Download JMX PDF Read All 30 JMX Questions
Previous QuestionNext Question
What is a named pointcut and why to use one?How to access JMX (Java Beans) from a process running in docker container?