ColdFusion 8 and ActiveMQ JMS
August 20, 2007 ·
ColdFusion 8 includes two example JMS event gateways. It includes the original JMS event gateway that I wrote as part of CFMX7 and it now includes an updated JMS event gateway that adds a number of new features, such as transacted message consumption, 'map' messages, message properties and message selectors and support for both topics and queues. The original gateway type is called "JMS" and the updated gateway type is called "ActiveMQ". It isn't really specific to the Apache ActiveMQ JMS server but it was developed for a project that used that. The ActiveMQ JMS event gateway is based on the original JMS event gateway but is not entirely backward compatible. In order to implement some of the new features in a nice, clean way I had to rename some of the configuration parameters and change the event data structure passed into CF by the gateway. On the plus side, there is actually a "developer's guide" PDF for the new ActiveMQ gateway (in WEB-INF/cfusion/gateway/docs) that documents all of the data structures and configuration file parameters. If you're considering JMS as an integration technology (and I highly recommend doing so if you need reliable, asynchronous communication between backend systems) then you should look at ActiveMQ (it's free open source) and ColdFusion 8's new event gateway.