Java
-

Using PowerMock to Mock Constructors
In my opinion, one of the main benefits of dependency injection is that you can inject mock and/or stub objects…
Read More » -

Camel: Build a message based application
This is a long article that contains three separate topics: Getting started with Apache Camel with Java Improving startup of…
Read More » -

Configure timeout for CDI conversations
CDI conversation scope is a nice feature when developing JSF applications. Imagine you have large data tables which take a…
Read More » -

Hibernate: save vs persist and saveOrUpdate
What is difference between save and saveOrUpdate or Difference between save and persist are common interview question in any Hibernate…
Read More » -

Twitter REST API from Scala and Java using signpost
If you’ve read some other articles on this blog you might know that I like creating visualizations of various datasets.…
Read More » -

Java Hidden code
Sometime ago I came across the issue of invisible characters in Strings. These can really cause confusion because they are…
Read More » -

Spring 3.1 Caching and @CacheEvict
My last blog demonstrated the application of Spring 3.1’s @Cacheable annotation that’s used to mark methods whose return values will be stored…
Read More » -

Duck typing in Java ? Well, not exactly
According to Wikipedia duck typing is: style of dynamic typing in which an object’s methods and properties determine the valid…
Read More » -

Apache Wicket: Remember Me functionality
It is quite common in web applications to have “Remember Me” functionality that allows user to be automatically logged in…
Read More »







