Spring+Hibernate Application with zero XML

Spring framework came up with Annotation support since 2.5 version which eases the development.Whether Annotation based approach better or XML approach is better is depends on the project and their personal preference. Let us see how we can write a Simple Application using Spring and Hibernate using Annotations, no xml at all. The configuration for […]

Read More

Applying IOC/DI to Method Design

Eventhough IOC is a generic design pattern, with Spring framework IOC/DI pattern became more popular.We can find lot of definitions for IOC/DI over internet, but the underlying concept is same.“Instead of component is responsible for getting the required dependencies to perform a task, a container/factory should build the dependencies and inject the dependencies into the […]

Read More

Aspect Oriented Programming using SpringAOP

While developing software applications for a business we do recieve the requirements either from requirements gathering team or from business analysts. In general those requirements are functional requirements which represents the activities that the business is doing. while developing software applications, apart from the functional requirements we should also consider some other points like performance, […]

Read More

Multiple DataSource configurations using Spring

While developing Java based applications we might frequently need to change the database properties based on the environment we are working like PRODUCTION, DEVELOPMENT OR UAT environments. In that situations the following approach will be useful and easy to configure database properties for each environment. If we want to change the environment we just need […]

Read More