RestTemplate and Proxy Authentication explained

Some time ago I’ve faced with requirements regarding retrieving data using REST behind proxy. There were some code samples available but I was really worried about thread safety and leaking resources. In this post I would like to dig into this topic using RestTemplate from Spring Framework

Read the rest of this entry »

PrimeFaces DataTable and server side pagination, filtering and sorting

Recently I’ve tried PrimeFaces 4x DataTable once again (after year or so working with Apache Wicket). One thing — I like it. It is now possible to implement scallable server side pagination, filtering and sorting logic without too much hacks

Read the rest of this entry »

HashMap complex keys

Everybody use associative arrays. They provide mapping between key and value. In this article I’ll talk about using complex keys in java.util.HashMap<K,V> Read the rest of this entry »

Microsoft SQL Server – measure operation time

In previous post we’ve described how to get simple good looking information about your data. Now let’s try to find out how we can measure time required by db operation (stored procedure, sql query etc) to perform. Read the rest of this entry »