Author Archive

Dynamically Importing Spring Context Files

We needed to change the underlying storage mechanism (JPA2/JCR/inMemory…) dynamically from configuration and actually the neat and perfect solution for our problem is Spring Profiles from Spring 3.1 as you can see from this excellent post by Chris Beams. But since the beans with Profiles are not there yet and the Spring 3.1 GA release is [...]

Spring MVC/JPA2 Quick Startup Projects

I know there are many Spring MVC/JPA2 tutorials and projects out there, and in the previous years I have forgotten how many new projects I have started projects using Spring MVC and JPA2, so I added two template projects to Google Code, mainly for myself. Spring MVC Quick Startup: This project is a simple template [...]

Amsterdam Startup Weekend is over!

Wow, what an amazing weekend and Amsterdam Startup Weekend is now over. Here are the projects that pitched and their websites/projects. Most of these projects were launched in less than 54 hours! The Winners: Goddess Alert Shuffle Wear SNTMNT The other projects that pitched: Legal Toolkit tipNtrip Party with a Local UnslothMe THE RACING APP [...]

Maven JAXB plugin for code generation from XSD

We can use Maven JAXB 2.1 Plugin to easily generate JAXB2 code from XSDs at build. Here are the maven dependencies for JAXB at pom.xml: and here is the JAXB xjc plugin settings at pom.xml, of course you can change the output directory configuration, I wanted to generate the code at build to target/generated-sources folder: [...]

Jericho HTML Parser

I needed to parse and merge HTML for the current project I am working on. After searching and playing with several HTML parsers I decided to use Jericho which is a light-weight and easy HTML Parser. I also checked the CyberNeko HTML Parser which is another strong alternative but here is the simple reason why [...]

Getting content type from file extension

There are several ways to get the content-type from a file using the extension, you can also use Spring’s ConfigurableMimeFileTypeMap which uses javax.activation. There is also a great article about Getting the Mime Type from a File.

Winter cleaning :)

Image via Wikipedia Hi again after 1 year I updated my blog’s theme, which is not very girly now I also removed some old posts, especially about JSF, because actually it has been a long time since I used JSF, and they were really very old…

log4j Custom Appender For Separate Log Files

We needed different log files for a common web project, this gateway project simply loads web services dynamically and generates the wsdd files at runtime, but the problem was huge size of the common log file used by all services. So we needed different log files for different services. Here is the step by step [...]

Grails Startup with IntelliJ IDEA

I started a toy project just to give Grails a try and want to share the project setup, and other steps. I were really impressed by the demo applications: painless, easy startup and CRUD applications, but yes a bit too late but I were really busy at my new job, and also trying to get [...]

New Year Gifts :)

Cover via Amazon The books we ordered have just arrived: great gifts for the new year The Mythical Man-Month: Essays on Software Engineering I will start with classic book of software engineering – The Mythical Man-Month: Essays on Software Engineering first which was first published in 1975 by Fred Brooks. This anniversary edition includes four [...]