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

A beginner’s guide to Java Persistence locking

java-interview-questions-answers

Implicit locking In concurrency theory, locking is used for protecting mutable shared data against hazardous data integrity anomalies. Because lock management is a very complex problem, most applications rely on their data provider implicit locking techniques. Delegating the whole locking responsibility to the database system can both simplify application development and prevent concurrency issues, such as deadlocking. Deadlocks can still ...

Read More »

Apache TomEE + JMS. It has never been so easy.

java-interview-questions-answers

I remember old days of J2EE (1.3 and 1.4) that it was incredibly hard to start a project using JMS. You needed to install a JMS broker, create topics or queues and finally start your own battle with server configuration files and JNDI. Thanks of JavaEE 6 and beyond using JMS is really easy and simple. But with Apache TomEE ...

Read More »

Instances of Non-Capturing Lambdas

java-logo

Roughly a month ago, I summarized Brian Goetz’ peek under the hood of lambda expressions in Java 8. Currently I’m researching for a post about default methods and to my mild surprise came back to how Java handles lambda expressions. The intersection of these two features can have a subtle but surprising effect, which I want to discuss. Overview To ...

Read More »

Java8 Sorting – Performance Pitfall

java-logo

Java 8 brings all the goodness of lambdas to enable us to program using a declarative style. But is it really free? And should we be concerned about the price we have to pay for the new programming goodies? Here’s an example where we might have to worry. Consider sorting instances of this simple class:           ...

Read More »

The CHAOS Report and #NoEstimates

agile-logo

You know what’s the best way to start the year? Going over success rates of projects! The Standish Group has been publishing the CHAOS report for more than twenty years now. I wasn’t surprised to find that they still use the same criteria for success and failure of projects. Here’s a summary of the CHAOS definition:         ...

Read More »

JAX-RS 2.0 : Server side Processing Pipeline

java-interview-questions-answers

The inspiration for this post was the Processing Pipeline section in the JAX-RS 2.0 specification doc (Appendix C). I like it because of the fact that it provides a nice snapshot of all the modules in JAX-RS – in the form of a ready to gulp capsule !                 So I thought of ...

Read More »

Unit Testing in AEM (thinking loud)

java-logo

This is not a recommendation of any sorts but a culmination of ideas and a few options that are available for us to use if we want to do unit testing within AEM. I had done some research for a client some time back and this article is largely influenced by that work but a lot of contextual stuff has been ...

Read More »

EE Servlet 3: How to Setup Backend Services in a Web Application

java-interview-questions-answers

In a web application, providing user interfacing (UI) is often only half of the job. Many applications have requirements that’s supported by backend services. Some example of backend services are scheduler process (batch processing), listen to a queue and respond when messages come in, or simple thing such as storing information for the entire application to use. These global data ...

Read More »

My favourite Java puzzler 2 + 1 = 4

java-logo

Here’s  my current favourite Java puzzler. How can you get your code to do this?                     Integer b = 2; Integer c = 1; System.out.println("b+c : " + (b+c) ); // output: 'b+c : 4' !! There are no tricks with Sytem.out.println() i.e. you would be able to see the same ...

Read More »

Docker container linking across multiple hosts

docker-logo

Docker container linking is important concept to understand since any application in production will typically run on a cluster of containers across multiple hosts. But simple container linking does not allow cross-host communication. Whats the issue with Docker container linking? Docker containers can communicate with each other be manually linking as shown in Tech Tip #66 or orchestrated using Fig as shown in Tech Tip #68. Both of ...

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