JMX (Java Management Extensions) Question:
Download Questions PDF

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

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 Interview Questions And Answers PDF

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?