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 ....

 

Spring Environment is for initialization code only

spring-interview-questions-answers

Since version 3.1, the Spring framework offers an abstraction towards several different sources through which you can easily configure your application: the Environment. In this post I describe a micro benchmark that I ran to prove that, while it’s a convenient API if you’re using Spring in your application, it might introduce a performance penalty for which you should not ...

Read More »

Java8 Multi-threading ForkJoinPool: Dealing with exceptions

java-logo

One of the main motivations behind the introduction of Java8 lambdas was the ability to be able to use multicores as easily as possible (see Mastering Lambdas: Java Programming in a Multicore World).  By simply changing your code from collection.stream()... to collection.parallelStream()... you have instant multi-threading at your disposal which brings with it all the CPU power on your machine. ...

Read More »

Disambiguating between instances with Google Guice

java-interview-questions-answers

Google guice provides a neat way to select a target implementation if there are multiple implementations of an interface. My samples are based on an excellent article by Josh Long(@starbuxman) on a similar mechanism that Spring provides. So, consider an interface called MarketPlace having two implementations, an AndroidMarketPlace and AppleMarketPlace:           interface MarketPlace { } class ...

Read More »

Your Apache Camel applications now includes out of the box documentation

apache-camel-logo

A couple of months back I blogged about the upcoming 2.15 release includes functionality to obtain fine grained information about each property configured on your endpoints in the blog titled – Apache Camel please explain me what these endpoint options mean. We have continued on this path, and today we have extended this from endpoints to cover EIPs, data formats, ...

Read More »

How to install 3 popular NoSQL databases for development in MacOSX for newbies Part 3 (CouchBase)

couchbase-logo

Part 1(Mongodb) Part 2 (Cassandra) Part 3 (CouchBase) In this post we are going to install CouchBase, a NoSQL database that has gained a lot of momentum latetly. CouchBase is very very developer friendly in terms of setting up and getting started time. Actually is the simplest. It offers a single download for many platforms (including MacOSX). You can find ...

Read More »

How to install 3 popular NoSQL databases for development in MacOSX for newbies Part 2 (Cassandra)

apache-cassandra-logo

Part 1(Mongodb) Part 2 (Cassandra) Part 3 (CouchBase) In this post we will install on our local MacOSX (Yosemite) environment, another famous NoSQL database, the Apache Cassandra. As a developer, I found Datastax, community packaging of Cassandra, very handy, seems they offer ready made MacOSX specific packages. You can of course download and install the the tarballs from Apache or ...

Read More »

How to install 3 popular NoSQL databases for development in MacOSX for newbies Part 1 (mongodb)

mongodb-logo

Part 1(Mongodb) Part 2 (Cassandra) Part 3 (CouchBase) This post aims to help all developers (not only Java) that want to develop using NoSQL datastores, specifically MongoDB, Cassandra and Couchbase, in MaOSX. Before starting writing code you need to have the db engines installed and ready for tests. So our goal for these mini posts will be to  install all ...

Read More »

JDBC Tutorial – The ULTIMATE Guide (PDF Download)

java-logo

This tutorial is about JDBC (Java Database Connectivity), an API provided by Oracle that allows programmers to handle different databases from Java applications: it allows developers to establish connections to databases, defines how a specific client can access a given database, provides mechanisms for reading, inserting, updating and deleting entries of data in a database and takes care of transactions ...

Read More »

Moving My Beers From Couchbase to MongoDB

mongodb-logo

Few days ago I have posted a joke on Twitter:                       Moving my Java from Couchbase to MongoDB pic.twitter.com/Wnn3pXfMGi — Tugdual Grall (@tgrall) January 26, 2015 So I decided to move it from a simple picture to a real project. Let’s look at the two phases of this so called ...

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