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 » -
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 » -
Hello JavaFX 2.0: Introduction by Command Line
I looked at a simple JavaFX version of the ubiquitous Hello World example from a NetBeans 7.1 beta perspective in…
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 » -
Using EasyMock or Mockito
I have been using EasyMock for most of time but recently I worked with a few people who were pretty…
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 »