Reading fixed length/width input records with Hadoop mapreduce

While working on a project where I needed to quickly import 50-100 million records I ended up using Hadoop for the job. Unfortunately the input files I was dealing with were fixed width/length records, hence they had no delimiters which separated records, nor did they have any CR/LFs to separate records. Each record was exactly … Continue reading Reading fixed length/width input records with Hadoop mapreduce

Integrating Restlet with Spring

For those of you out there who would like to get Restlet 2.0 (currently the M5) release up integrated with your existing Spring application, hopefully this post will be of some help. I recently had to do this and unfortunately the documentation related to Spring integration on the Restlet site is scattered across various docs … Continue reading Integrating Restlet with Spring

Book Review: Liferay Portal 5.2 Systems Development

This is a book review of Liferay Portal 5.2 Systems Development by Jonas X. Yuan. Having no previous experience with this platform, I bought this book to try to get an overview of Liferay. The book starts out by giving an overview of Liferay and an overview of JSR-286. The bulk of the book (90%) … Continue reading Book Review: Liferay Portal 5.2 Systems Development

AccessDecisionManager does not support secure object class…

This post will be short and sweet, but for those of you using Spring Security and come across this exception, hopefully this post will be of some help to you. Here is the exception: I received this exception today when I began to add some http/web level security into my application which already had some … Continue reading AccessDecisionManager does not support secure object class…

Add Hibernate 3.3.2 as a dependency in your Maven POM

Recently I had to update a Maven POM to get the latest release of Hibernate (3.3.2) and if you are in this boat as well, here is what you have to do: 1) Ensure that you add the JBoss repository to your <code>repositories</code> section as the latest releases are not in the standard maven repository. … Continue reading Add Hibernate 3.3.2 as a dependency in your Maven POM

Simplified Java encryption with Jasypt

Recently I had to evaluate an older encryption service that existed in an Java app. The service was written in the early days when the JCE was relatively new and it used BouncyCastle as the provider. While coded quite well the service had code which handled all sorts of the low level JCE stuff like … Continue reading Simplified Java encryption with Jasypt

How to read a specific line from a very large file in Java

So the other day I had to write some Java code to read specific lines of text from very large files full of ASCII text records (of a fixed length). The records in the files are generally defined by the the length of a record (no carriage returns, fixed length, i.e. each "record" is 290 … Continue reading How to read a specific line from a very large file in Java