Hajo is a simple RPC interface built for Berkeley DB JE using Apache Thrift. The basic idea for Hajo was born in a project of mine, where we had to build a service on top of Berkeley DB JE so that multiple threads could write/delete data from the database. Back then we solved using a Spring based service hosted in Tomcat.
After I learnt Thrift, I felt that it would be good to have a simple Thrift interface and it would be much more easy to use and maintain. Hence Hajo was born.
The name Hajo comes from a place in Assam, India. It is a place rich in archelogical history and my father likes that place a lot. More details can be found here - http://en.wikipedia.org/wiki/Hajo.
Hajo can be downloaded from here - http://sourceforge.net/projects/berkeleydbtools/files/
Hajo is a Thrift based RPC server. The interface file is included in the distribution. Unzip the package, and add the Hajo jar file to your class path. There is a sample test config file included, use that and a port of your choice to start the server. The command to be used is
The client code for Thrift interface is part of the Hajo jar. All the Hajo specific code is in a call HajoService. For details on how to use Thrift API, please see the Thrift site ( http://incubator.apache.org/thrift/) or the test code in the included source.