Java
-
Testing with files and directories in JUnit with @Rule
Testing with Files and directories in JUnit is easy thanks to TemporaryFolder @Rule. In JUnit rules (@Rule) can be used…
Read More » -
A beginner’s guide to Java Persistence locking
Implicit locking In concurrency theory, locking is used for protecting mutable shared data against hazardous data integrity anomalies. Because lock…
Read More » -
Apache TomEE + JMS. It has never been so easy.
I remember old days of J2EE (1.3 and 1.4) that it was incredibly hard to start a project using JMS.…
Read More » -
Instances of Non-Capturing Lambdas
Roughly a month ago, I summarized Brian Goetz’ peek under the hood of lambda expressions in Java 8. Currently I’m…
Read More » -
Java8 Sorting – Performance Pitfall
Java 8 brings all the goodness of lambdas to enable us to program using a declarative style. But is it…
Read More » -
JAX-RS 2.0 : Server side Processing Pipeline
The inspiration for this post was the Processing Pipeline section in the JAX-RS 2.0 specification doc (Appendix C). I like…
Read More » -
Unit Testing in AEM (thinking loud)
This is not a recommendation of any sorts but a culmination of ideas and a few options that are available…
Read More » -
EE Servlet 3: How to Setup Backend Services in a Web Application
In a web application, providing user interfacing (UI) is often only half of the job. Many applications have requirements that’s…
Read More » -
My favourite Java puzzler 2 + 1 = 4
Here’s my current favourite Java puzzler. How can you get your code to do this? …
Read More »