Tuesday, October 30, 2007

Synapse ESB training in Atlanta and Hong Kong

I will be running a half day training session in Atlanta on the Apache Synapse ESB on Tues 13th November 10:00-13:00 as part of ApacheCon.
You don't need to book to the whole ApacheCon conference, you book just the half-day training if you like, or you can attend the whole of ApacheCon.

The training will cover:
* installing Synapse
* Understanding Synapse's model
* Using Synapse to add smarts to your service network
* What's new in Synapse 1.1
* Plenty of real world samples - databases, JMS, File Systems, CSV files
* Extending Synapse using Java and dynamic languages

I'll also be running the same session two weeks later in HK.

Please let me know if you are interested - or just book!

Monday, October 15, 2007

Using Groovy to do a simple Synapse DSL

I've been playing with Groovy and Synapse. If you want to know more - come along to my talk at the Grails Exchange on Friday.

One of the things I've done is to use the StreamingMarkupBuilder to turn the Synapse configuration into a nice {curly bracket} language from its nasty <angle bracket>!

Here is an example:

definitions {
task(class:"MessageInjector", name:"messageInjector1") {
trigger(interval:"5000")
property(name:"message") {
blah { mydata() }
}
property(name:"to",value:"urn:paul")
}
"in" {
log(level:"full")
send()
}
out {
send()
}
}

A simple Groovy script converts this into a synapse.xml. A next step will be to directly build the Synapse mediator tree from this syntax instead. But in the meantime this is a nice hack, and not bad for 16 lines of code!

Paul