Spring
-
Enterprise Java
Measure execution time in Java – Spring StopWatch Example
There are two ways to measure elapsed execution time in Java either by using System.currentTimeinMillis() or by using System.nanoTime() .…
Read More » -
Enterprise Java
Spring @Configuration and FactoryBean
Consider a FactoryBean for defining a cache using a Spring configuration file: <cache:annotation-driven /> <context:component-scan base-package='org.bk.samples.cachexml'></context:component-scan> <bean id='cacheManager' class='org.springframework.cache.support.SimpleCacheManager'> <property…
Read More » -
Enterprise Java
Spring JDBC Database connection pool setup
Setting up JDBC Database Connection Pool in Spring framework is easy for any Java application, just matter of changing few…
Read More » -
Enterprise Java
Spring Profiles in XML Config Files
My last blog was very simple as it covered my painless upgrade from Spring 3.0.x to Spring 3.1.x and I…
Read More » -
Enterprise Java
Spring Security Implementing Custom UserDetails with Hibernate
Most of the time, we will want to configure our own security access roles in web applications. This is easily…
Read More » -
Enterprise Java
Resolve circular dependency in Spring Autowiring
I would consider this post as best practice for using Spring in enterprise application development. When writing enterprise web application…
Read More » -
Enterprise Java
Spring Integration with Gateways
This is the second article of the series on Spring Integration. This article builds on top of the first article…
Read More » -
Enterprise Java
Introducing Spring Integration
In this article we introduce Spring Integration. If you have not worked with Spring Integration before, it might help to…
Read More » -
Enterprise Java
Spring security 3 Ajax login – accessing protected resources
I have seen some blogs about Spring Security 3 Ajax login, however I could not find any that tackles how…
Read More »