Saturday, 25 January 2014

Web resources in webapp from jar module

The servlet 3.0 spec defines a way to share webapp resources via a dependent jar
Read more here:

Wednesday, 25 December 2013

Finding Memory Leak in Java

Here is a blog with an example how to find a memory leak in java application with analysing tools:

Tuesday, 24 December 2013


Java 8 includes a new synchronization mechanism called StampedLock
Great article about it is here:

Monday, 28 October 2013

ExpectedException JUnit 4.9

The ExpectedException Rule allows in-test specification of expected exception types and messages: Example here:

Sunday, 27 October 2013

Optional in guava

Optional is a way of replacing a nullable T reference with a non-null value. An Optional may either contain a non-null T reference (in which case we say the reference is "present"), or it may contain nothing (in which case we say the reference is "absent"). It is never said to "contain null."

Same concept Optional class is going to be added to the core java.util library in jdk8

More detalails here:

Monday, 21 October 2013

JSR 303 Beans Validation - Groups

With JSR 303 we can validate depending on the context by using groups.
Read whole story here:

Friday, 18 October 2013

RestX - the lightweight Java REST framework

  • Fast (It is build using annotation processors, so it is not using reflection but generated code during compilation)
  • Has very simple and neat console for testing rests
  • Has wizard for generating project from scratch
  • Can be used in the current project with simple configuration
  • Has well constructed DI
  • Very nice usage of Rest Specifications notated in yuml
  • Examples of mongo and couchbase integrations
  • Integrations with tomcat, jetty, simpleframework

For me it's worth trying!

Read more here:

Add to Google