After contributing to open source projects development, I learnt that the superior quality of those products comes primarily because of the Continue reading “Silver Bullet to build superior software products”
Java Interview Questions – for Recruiters
A good friend of mine is in the recruiting business. Some how he misjudged that I am good in Java :-).
Continue reading “Java Interview Questions – for Recruiters”
Yes, you can catch Memory Leaks during test
Memory leaks are dangerous problems which puts entire application’s availability in to question mark. Most of the time Continue reading “Yes, you can catch Memory Leaks during test”
Often dismissed silly things – System.out.println and e.printStackTrace
Java developers have affinity to use System.out.println and e.printStackTrace during the development phase. Continue reading “Often dismissed silly things – System.out.println and e.printStackTrace”
Memory Leak in Java Executor!
I was surprised to witness the Java Executor behavior – which caused Continue reading “Memory Leak in Java Executor!”
Spring IOC Container – Performance Problem
Spring IOC Container wires the dependencies among the beans and returns the fully built bean tree to the caller. Continue reading “Spring IOC Container – Performance Problem”
Spring HTTP Remoting – pass custom HTTP header elements
If you are using Spring HTTP Remoting to communicate between your applications, sometimes you might want to Continue reading “Spring HTTP Remoting – pass custom HTTP header elements”
How to setup TestNG in Eclipse
1. Go to Help > Install New Software
2. In the ‘Work with:’ filed enter: http://beust.com/eclipse Continue reading “How to setup TestNG in Eclipse”
Best Practices – white-box unit tests!
If you are writing unit test for a class ABC.java, then your unit test file should be named ABCTest.java. i.e. it should be Continue reading “Best Practices – white-box unit tests!”
Critical Systems Review (CSR)
Are you anticipating a significant increase in traffic volume? Did you inherit new application due to re-org? Are you looking to Continue reading “Critical Systems Review (CSR)”
Storing Credit Card Numbers
In general it’s highly recommended not to store credit card numbers in your application. But if there is a strong requirement Continue reading “Storing Credit Card Numbers”
SSL Termination at Application Server or Load Balancer?
In the industry there has/is always been an argument whether SSL termination should happen on the Load Balancer or on the application server. Continue reading “SSL Termination at Application Server or Load Balancer?”
Set TimeZone at JVM always
If timezone is not set at the JVM level, then JVM would default to use operating system’s timezone. Continue reading “Set TimeZone at JVM always”
Source Code Branching – Best Practices
In the earlier article we saw potential branching strategies. This article talks about best practices in branching source code repository. Continue reading “Source Code Branching – Best Practices”
Stay Signed In – Sample implementation in Servlets using Cookies
In several web applications, there is a need to keep the user signed in for a prolonged durations (days, weeks, sometimes months). Continue reading “Stay Signed In – Sample implementation in Servlets using Cookies”
Database Connection Pool Configuration Recommendation
Configuring database connection pool is absolutely critical to the performance of the application. Configuring database connection pool is Continue reading “Database Connection Pool Configuration Recommendation”
Anatomy of a Transaction
In a typical web application, one single transaction can generate multiple log statements. It’s important to tie-up all log statements generated by Continue reading “Anatomy of a Transaction”
DayLight Savings Time Problem – Java
Most Java application ‘java.text.SimpleDateFormat’ object is used to convert a text/string in to ‘java.util.Date’ object. Typical Parsing code would look like: Continue reading “DayLight Savings Time Problem – Java”
Gracefully and quickly evict HTTP persistent connections
Title of this article might sound like an oxymoron. How can persistent HTTP connections be gracefully and at the same time quickly evicted? Continue reading “Gracefully and quickly evict HTTP persistent connections”