Friday, May 2, 2008

DB Schema - First Draft

I've completed the first draft of the schema. These are my notes on the mappings form old XML based fields to the new relational model. I only covered the parts that did not map 1 to 1.

This is a picture of the first draft schema. Click the image to see a larger (readable) version.

Thursday, May 1, 2008

Messaging and Active MQ

In the proposal I eluded to using web services to communicate between the central controller and the generators, but I think I'm going to use Active MQ instead.

I spoke with Ryan yesterday and he said the team is using ActiveMQ for messaging between processes and other apps in their group and it would be trivial for me to use their production bus.

AMQ appears to address all of the requirements for communication for my project and leaves a lot of room to grow new functionality in the future.

The standard team message queues are set up as follows:

Standard base queue path
/queue/(env)[production||development]/(app)[application name]/

Postfix non standard queue path
(standard)/(action)/(arguments)


to get this working in ruby I need to do the following:
Ruby --> `gem install stomp`
Perl --> Net::Stomp

Some things to look out for with ActiveMQ

Bug #1
There's a bug in ActiveMQ that makes all messages into binary messages if the header size is set. The fix for this is to:

Comment out the `content-length` header in `def transmit` in

/usr/local/lib/ruby/gems/1.8/gems/stomp-1.0.5/lib/stomp.rb

Bug #2
There's a bug in serialize to YML with arrays so I'm going to use serialize to XML

Officially Starting

My thesis proposal has been accepted and I'm registering for my last class, which is basically my thesis class.

That gives me a maximum of 9 months or until February 12th, 2009 to finish my thesis and get a grade.

Hello World

Looks like everything is working.