Tuesday, March 23, 2010

Groovy Templates in our IM Framework

As part of our instant messaging abstraction layer, we are making extensive use of Groovy and some Groovy constructs.

While our 'connectors' to the various IM platforms (Lotus Sametime, Microsoft OCS, XMPP) are all built using Java, our business logic and higher level applications are generally constructed using Groovy. For example, our Interviews and Monitored Queues were all developed in Groovy using our Java based API to the various IM systems.

Since we are now completing the monitored queue area of our latest version of
Instant Queue Manager, we are adding some finishing touches to the text portion of the application.

Luckily, Groovy templates are making this very easy. Here is a background article from IBM on Groovy templates: http://www.ibm.com/developerworks/java/library/j-pg02155/

Our idea is that we will enable Groovy based template syntax in our our queue definitions and then simple route the text resource through the Groovy template engine in order to provide real time text substitutions.

No comments: