Tuesday, 16 February 2010

Tokyo trip

I am visiting my wife here in Tokyo for a week. The trip has been good so far. The weather is cold, windy and wet. Managed to catch some sun when we went to Kyoto over the weekend. Last two days were spent in visiting Odaiba, Meji Shrine and Shibuya in Tokyo. Managed to grab a Japaneese style lunch with my wife's boss.

Talking about Shibuya, if you saw any movie shot in Tokyo and saw a BIG intersection with many people and large screens - in the movie Jumper for example - that is the Hachiku intersection in Shibuya - worlds busiest intersection. See this video - its crazy. I crossed it a few times and sat in the starbucks overlooking the square.

Will upload the best pics in about a week.

Saturday, 30 January 2010

OpenJMSAdapter 0.1 Beta : Ready for download

I have uploaded the first version of OpenJMSAdapter today.

A very basic version of help and getting started is up at allamraju.com/openjmsadapter

Have a look, and let me know what you think.

Thursday, 28 January 2010

Getting ready to release OpenJMSAdapter 0.1

I managed to resolve my issues with running tests in Netbeans - partly a corrupted project and partly my stupidity. But finally everything is green.

I did some basic perf tests and with all my code between the send() call to the point where the message ends up on the JMS server, I am able to publish 110 message per second on my laptop and receive at more or less the same rate.

As of now, you can
  • Configure the adapter to send or receive messages on a queue or topic using Yaml configuration or a database table.
  • Send or receive BytesMessage, TextMessage or ObjectMessage.
  • Ready clients are available for ActiveMQ and OpenMQ servers. I know this will not be sufficient, so you can write your own client and plugin to the adapter and the low level code will do the rest for you as if you had a ready built client. Writing this client is trivial :).

The next steps for me are basically to write some examples and a getting started guide. I am not really planning to but might add the javadocs and comments to the code as well.

Hopefully by this time next week, the first file will be up for download on sourceforge.

Wednesday, 27 January 2010

OpenJmsAdapter - Roadblocks

Something has gone wrong with my Netbeans. Over the Republic Day holiday, I could not run any test on OpenJmsAdapter! The reason strangely is that it cannot find the test hibernate config files that it could find so easily in the past. The files are not getting copied to the test folder under build!!!

This needs some head breaking this weekend. Hopefully, a fresh checkout should do the trick - in the past I have corrupted a couple of projects in my local copy and a fresh check out solved it.

Sunday, 17 January 2010

OpenJmsAdapter - Draft version ready

The first working draft of OpenJmsAdapter is ready. I spent the new year weekend coding the basics of the thing with a few tests and by last week managed to get all the layers of code ready. I started with ActiveMQ and built a client code that can send BytesMessage, TextMessage and ObjectMessage on destinations configured through a YAML file and maintain the sent/received sequence numbers. Then I managed to refactor out the common code and write a client for OpenMQ server with minimal effort.

The code had to be tweaked around a bit and the tests made my life easy. Basic performance tests on my kind of overloaded laptop showed about 120 messages published and received ( not simultaneously) with ActiveMQ.

There is still more work to be done before I put a release out. I need to put a SQL configuration apart from the YAML configuration. And make sure I have more tests and comments etc.

Will keep updating here.

Monday, 28 December 2009

Starting a new Project : OpenJmsAdapter

After two days of deliberations and thinking I have decided to start a new project OpenJmsAdapter.

This is not actually entirely new - this was something that I thought of about an year or so ago and then put on hold due to the fact that I was working on something similar on my job and did not want to mix the two.

The idea is simple - we use JMS as a messaging backbone for enterprises. A lot of boiler plate code needs to be written to connect and publish/subscribe messages from the JMS server. Of course our life is made easy by frameworks like Spring that make it easy to ignore the low level stuff and just publish messages. However, these miss certain value add features like
  • Automatic application level message sequence numbering
  • Checking message sequencing (This does not make sense in JMS in most cases).
  • Publisher heart beat - is the publisher alive or not?
I am still coming up with ideas and fleshing the thing out.

The only thing that is certain at this point is that I have started this project in out and out TDD mode (as against my usual urge to go straight to code and test lazily) and am using Netbeans, with ActiveMQ for my local testing.

I have only managed to write and test two classes today - should commit something by new year.

Sunday, 27 December 2009

500 mile email problem

500 mile email problem - brilliant read. I was rolling laughing at this one.