Bean life cycle in a Spring Bean Factory Container
Elaborate typical Bean life cycle in a Spring Bean Factory Container?
Expert
Bean life cycle in a Spring Bean Factory Container is: - The spring container discovers a bean’s definition from an XML file and instantiates the bean. - Using a dependency injection, spring fills all of properties as stated in a bean definition - If a bean implements BeanNameAware interface, then factory calls setBeanName() passing bean’s ID. - If a bean implements BeanFactoryAware interface, the factory calls setBeanFactory(), passing an instance of itself. - If there are BeanPostProcessors related with a bean, their post- ProcessBeforeInitialization() methods will be called. - If an init-method is stated for a bean then it will be called. - At last, if there are any BeanPostProcessors linked with a bean then their postProcessAfterInitialization() methods will be called.
Differentiate between JMS and RPC?
Can we place all class files in the WEB-INF folder and all the JSP's outside?
Illustrate JDBC abstraction and DAO module?
Briefly describe the state of deadlock?
Tell me whether Java is a pure object oriented language?
How threads invokes a run() method?
Elaborate Role of the JMS Provider?
Using what method a typical client perform the communication?
Define exception? Demonstrate the working of nested try blocks, with suitable examples?
Describe the advantages of JMS?
18,76,764
1922242 Asked
3,689
Active Tutors
1423804
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!