Category Archives: Java

6 Tips to Improve Your Exception Handling

6 Tips to Improve Your Exception HandlingGetting exception handling right can save you hours (or even days) of troubleshooting.  Unexpected production issues can ruin your dinner and weekend plans.  They can even affect your reputation if not resolved quickly.  Having a clear policy on how to manage exceptions will save you time diagnosing, reproducing, and correcting issues.  Here are 6 tips to improve your exception handling.
Continue reading

Export CSV and Excel from Java web apps With Data Pipeline

Data Pipeline is typically used in non-GUI applications to move data from one place and/or format to another. However, Data Pipeline can just as easily be plugged into your web, mobile, and desktop applications. Its small size and Java-centric approach makes it perfect for handling your data conversion and data manipulation use-cases.

This article will demonstrate how to download CSV (comma-separated values) and Excel data from Java web applications using Data Pipeline. It will also show one way to plug Data Pipeline into your JSPs.
Continue reading

How To Manage Your Application Properties using WebDAV

Managing the configuration of an application is a consistent pain-point for developers, administrators, and business analysts.

Often in production environments, configuration is isolated as files on the local disk, limiting easy access by all but administrators.  Another common approach is to store configuration in a database or LDAP.  While this have benefits of a local disk file, it lacks the ability to manage properties as naturally as a file.

The solution proposed uses a database and WebDAV to help resolve many negatives to do with application configuration in both a simple and lightweight way.
Continue reading

Use dynamic proxies to create a simple, powerful event bus (Part 2)

In part 1 of the event bus series we discussed implementing a simple and powerful event bus using just three classes. If you haven’t read it yet, I strongly recommend you read it first.

Use dynamic proxies to create a simple, powerful event bus (Part 1)

In this blog we’ll build on part 1 by adding several important features to the event bus to make it production ready.  Continue reading