The servlet 3.0 spec defines a way to share webapp resources via a dependent jar
Read more here: http://norrisshelton.wordpress.com/2014/01/24/include-jsp-resources-from-another-webapp/
Saturday, 25 January 2014
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:
http://www.captaindebug.com/2013/12/investigating-memory-leaks-part-2.html
Tuesday, 24 December 2013
StampedLock
Java 8 includes a new synchronization mechanism called StampedLock
Great article about it is here: http://www.javaspecialists.eu/archive/Issue215.html
Great article about it is here: http://www.javaspecialists.eu/archive/Issue215.html
Monday, 28 October 2013
ExpectedException JUnit 4.9
The ExpectedException Rule allows in-test specification of expected exception types and messages:
Example here:
http://junit.org/javadoc/4.9/org/junit/rules/ExpectedException.html
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: https://code.google.com/p/guava-libraries/wiki/UsingAndAvoidingNullExplained
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: http://www.jroller.com/eyallupu/entry/jsr_303_beans_validation_using
Read whole story here: http://www.jroller.com/eyallupu/entry/jsr_303_beans_validation_using
Friday, 18 October 2013
RestX - the lightweight Java REST framework
Pros:
- 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 http://restx.io/docs/manual-app-bootstrap.html
- 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: http://restx.io
Subscribe to:
Posts (Atom)