Enterprise Java
-
Hibernate lazy/eager loading example
This post will focus on why and how we use the concepts known as LAZY and EAGER loading in an…
Read More » -
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 » -
Cross Site Scripting (XSS) and prevention
Variants of Cross site scripting (XSS) attacks are almost limitless as mentioned on the OWASP site (https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)). Here I propose…
Read More » -
JBoss BRMS with JasperReports for Reporting
Introduction Jasperreports is a free downloadable library that can be used for generating rich reports for Java EE applications. This…
Read More » -
JBoss BRMS Best Practices – tips for your BPM Process Initialization Layer
I have posted some articles in the past on migration strategies, taken closer looks at process layers and provided some…
Read More » -
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 » -
ADF : Dynamic View Object
Today I want to write about dynamic view object which allow me to change its data source (SQL query) and…
Read More » -
Hibernate caches basics
Recently I have experimented with hibernate cache. In this post I would like share my experience and point out some…
Read More » -
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 »