Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

and many more ....

 

Getting Started With Spring’s MVC Test Framework – Part 2

spring-interview-questions-answers

The first blog in this mini-series introduced the Spring MVC Test Framework and demonstrated its use in unit testing Spring MVC Controller classes as controllers rather then as POJOs. It’s now time to talk about using the framework for integration testing. By ‘integration testing’ I mean loading the Spring context into the test environment so that the controller can work with ...

Read More »

JPA 2 | Fetch Joins and whether we should use them

java-interview-questions-answers

Introduction Recently I have been working with FETCH JOINS in JPA 2 to fetch the data eagerly from the Database and I learned quite a lot on why we should avoid using Fetch Joins in our day to day operations. Today’s blog post talks about my experience with Fetch and my learning (based mostly on the review comments I got ...

Read More »

Java Garbage Collection Distilled

java-logo

Serial, Parallel, Concurrent, CMS, G1, Young Gen, New Gen, Old Gen, Perm Gen, Eden, Tenured, Survivor Spaces, Safepoints, and the hundreds of JVM startup flags. Does this all baffle you when trying to tune the garbage collector while trying to get the required throughput and latency from your Java application? If it does then do not worry, you are not ...

Read More »

Enhanced Groovy-based JAR/Manifest Diff Tool

groovy-logo

This brief blog post provides another Groovy script that provides simple differencing of two JAR (or WAR or EAR) files and their MANIFEST.MF files. It represents a combination of the JAR comparison script I blogged on earlier, Rick‘s addition of Groovy‘s CliBuilder to allow some output data to be turned off, my MANIFEST.MF comparison script, and an ability to use ...

Read More »

Spring @Bean and PropertyPlaceHolderConfigurer

spring-interview-questions-answers

I was recently stumped by what I thought was going to be a fairly straightforward implementation – Consider the following Spring Java based bean definition file ( @Configuration):                 package root; ... @Configuration @PropertySource("classpath:root/test.props") public class SampleConfig { @Value("${test.prop}") private String attr; @Bean public SampleService sampleService() { return new SampleService(attr); } } Here ...

Read More »

Fake system clock pattern in Scala with implicit parameters

scala-logo

Fake system clock is a design pattern addressing testability issues of programs heavily relying on system time. If business logic flow depends on current system time, testing various flows becomes cumbersome or even impossible. Examples of such problematic scenarios include: certain business flow runs only (or is ignored) during weekends some logic is triggered only after an hour since some ...

Read More »

MongoDB Pro Tip: Field Projections

mongodb-logo

Did you ever learn that select * from table in RDBMS-land is bad? Of course, you did! If you’re only looking for the email address of a user and not the other 15 columns worth of data, then why ask for that data and incur a penalty? The query select email from user where user_id = 1; is far more ...

Read More »

MongoDB Geo-Spatial Mobile Demo

mongodb-logo

Mongo: noun (pl mongo or mongos) – a monetary unit of Mongolia. Equal to one hundredth of a tugrik. Origin from Mongolian “silver” I’ve written about NoSQL DBMS [http://keyholesoftware.com/2012/10/01/is-nosql-the-sql-sequel/]. We know that there are several categories of NoSQL DBMS. MongoDB is a scalable NoSQL document-oriented data store that has built-in geo-spatial indexing. Let’s look at its characteristics and then check ...

Read More »

Java’s Reflection API

java-logo

If you have ever asked yourself questions like these: – “How do I invoke a method, having only it’s name in a String?” – “How do I list all the attributes in a class dynamically?” – “How do I write a method that resets the state of any given object to default values?” Then you have probably already heared of ...

Read More »

Android Studio with android alternative emulator:Genymotion

android-logo

Moving from Eclispe/ADT to Android Studio I was exploring some alternative configuration to improve my building environment. I came across a nice Android device emulator called Genymotion. I find it very interesting and really fast so that I decided to use it as my device emulator. In this post I will explain how to setup Android development environment using Android ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close