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

 

Simplicity vs. Robustness – Demonstrated On Lock File Handling

java-logo

Today we will discuss a conflict between the design values of keeping things simple, stupid (KISS) and robustness, between underdesign and overdesign. We were writing a batch Java application and needed to ensure that at maximum one instance is running at a time on the server. A team member had the good idea of using lock files, which indeed worked ...

Read More »

How can Agile help you in clearing the technical debt?

agile-logo

This post is a write up to my talk titled “How can Agile help you in clearing the technical debt?” presented at the Scrum Bangalore Meetup 2013. It was a short talk for 30 Minutes, So thought of a write up to elaborate the ideas on the slides.                   How can agile help ...

Read More »

Code Reviews Change Over Time

software-development-2-logo

We’ve been doing code reviews for about 4 years now. Getting Started with Code Reviews From the start, developers would help each other out, look at code when someone asked, or sometimes a lead or a senior developer would step in and review code if we were seeing problems in testing or if someone had just joined the team and ...

Read More »

Injecting Spring beans into non-managed objects

spring-interview-questions-answers

Advantages coming from dependency injection can be addicting. It’s a lot easier to configure application structure using injections than doing all resolutions manually. It’s hard to resign from it when we have some non-managed classes that are instantiated outside of the container – for example being part of other frameworks like Vaadin UI components or JPA entities. The latter are ...

Read More »

Elo Rating System: Ranking Champions League teams using Clojure

clojure-logo

As I mentioned in an earlier blog post I’ve been learning about ranking systems and one of the first ones I came across was the Elo rating system which is most famously used to rank chess players. The Elo rating system uses the following formula to work out a player/team’s ranking after they’ve participated in a match:       ...

Read More »

5 Steps to Stress-Free Cloud Maintenance

software-development-2-logo

Making the switch to cloud computing can cause a range of headaches for the IT department. From worrying about security breaches to making sure applications are available when they need to be, maintaining a cloud system can be complex. However, by taking the following five steps maintenance doesn’t have to be stressful. 1. Choose the Right Type of Cloud Every ...

Read More »

Top 100 Java Servlet Questions

java-interview-questions-answers

1) Is it the “servlets” directory or the “servlet” directory? Answer: For Java Web Server: on the file system, it’s “servlets” c:\JavaWebServer1.1\servlets\DateServlet.class in a URL path, it’s “servlet”: http://www.stinky.com/servlet/DateServlet 2) How do I support both GET and POST protocol from the same Servlet? Answer: The easy way is, just support POST, then have your doGet method call your doPost method: ...

Read More »

Spring MVC: Ajax & JQuery

spring-interview-questions-answers

Today I want to demonstrate how to integrate AJAX into a Spring MVC application. I’m going to use JQuery on a client side for sending of requests and receiving of responses. This tutorial will be based on one of my previous tutorials about Spring MVC and REST services. In this article you will read how to make a web-application more ...

Read More »

Easy Messaging with STOMP over WebSockets using Apollo

codehaus-stomp-logo

In my previous post I have covered couple of interesting use cases implementing STOMP messaging over Websockects using well-known message brokers, HornetQ and ActiveMQ. But the one I didn’t cover is Apollo as in my own opinion its API is verbose and not expressive enough as for a Java developer. Nevertheless, the more time I spent playing with Apollo, more ...

Read More »

Easy Messaging with STOMP over WebSockets using ActiveMQ and HornetQ

codehaus-stomp-logo

Messaging is an extremely powerful tool for building distributed software systems of different levels. Typically, at least in Java ecosystem, the client (front-end) never interacts with message broker (or exchange) directly but does it by invoking server-side (back-end) services. Or client may not even be aware that there’s messaging solution in place. With Websockets gaining more and more adoption, and ...

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