Hackathon 6: ActiveMQ, Apache Camel, Java Notification API
Mailtrust held their hackathon number 6, which is the first for me. It was pretty exciting to pickup any project that you wanna work on, and try to finish it all from design to delivery in one day. My project was to create a generic notification API that can send alerts to email, jabber IM, or sms.
Since I have been working with ActiveMQ for over a month now, I decided to use it to queue the alerts. All alerts are described in an XML file.
This XML file is passed to our API which parses the file, and queues a number of alerts based on its priority to different ActiveMQ queues. Then, we configured a number of Apache Camel routing rules that would route these alerts from ActiveMQ to different end points, such as jabber and e-mail.
The biggest problem with this XML file is that your e-mail as well as your jabber passwords are stored in plain text, which can be solved very easily. Just FYI
.
The project is written in Java, however, we implemented a php interface to it. Any other language can easily implement an interface to our API if it only parses the XML alerts document.

ETA?
Probably sometime late this week or early next week.
Hi there,
I’ve been looking for something similar to provide a flexible alerting/routing meachanism for an information security team. Have you been able to release any code or are you familiar with any similar projects?
I was unable to release the project code. Thus, I modified the post to reflect that it isn’t open source. But I hope the idea inspires someone to re-implement it. I can help with mentoring if anyone is interested. It is a very simple project.
Thanks,
Khaled
Cool when I was a kid the word Hackathon was not invented so it was more a gathering of friends for a weekend do stuff with computers.
But now I wish that I attend a hackathon in my grown up life as well.
Looking forward to your OS project.
Do you mind that we post a link to it when its released on the Apache Camel articles or users stories page? If not do you have a special title / credit in mind?