Category: Spring

What are the common implementations of the ApplicationContext ? 0

What are the common implementations of the ApplicationContext ?

The three commonly used implementation of ‘Application Context’ are ClassPathXmlApplicationContext : It Loads context definition from an XML file located in the classpath, treating context definitions as classpath resources. The application context is loaded...

How is a typical spring implementation look like ? 0

How is a typical spring implementation look like ?

For a typical Spring Application we need the following files: An interface that defines the functions. An Implementation that contains properties, its setter and getter methods, functions etc., Spring AOP (Aspect Oriented Programming) A...

What is the typical Bean life cycle in Spring Bean Factory Container ? 0

What is the typical Bean life cycle in Spring Bean Factory Container ?

Bean life cycle in Spring Bean Factory Container is as follows: The spring container finds the bean’s definition from the XML file and instantiates the bean. Using the dependency injection, spring populates all of...

How to integrate Spring and Hibernate using HibernateDaoSupport? 0

How to integrate Spring and Hibernate using HibernateDaoSupport?

Spring and Hibernate can integrate using Spring’s SessionFactory called LocalSessionFactory. The integration process is of 3 steps. Configure the Hibernate SessionFactory Extend your DAO Implementation from HibernateDaoSupport Wire in Transaction Support with AOP

What are the ways to access Hibernate using Spring ? 0

What are the ways to access Hibernate using Spring ?

There are two approaches to Spring’s Hibernate integration: Inversion of Control with a HibernateTemplate and Callback Extending HibernateDaoSupport and Applying an AOP Interceptor

What do you mean by Auto Wiring? 0

What do you mean by Auto Wiring?

The Spring container is able to autowire relationships between collaborating beans. This means that it is possible to automatically let Spring resolve collaborators (other beans) for your bean by inspecting the contents of the...

What is DelegatingVariableResolver? 0

What is DelegatingVariableResolver?

Spring provides a custom JavaServer Faces VariableResolver implementation that extends the standard Java ServernFaces managed beans mechanism which lets you use JSF and Spring together. This variable resolver is called as DelegatingVariableResolver

How to integrate  Java Server Faces (JSF) with Spring? 0

How to integrate Java Server Faces (JSF) with Spring?

JSF and Spring do share some of the same features, most noticeably in the area of IOC services. By declaring JSF managed-beans in the faces-config.xml configuration file, you allow the FacesServlet to instantiate that...