Anyone tried integrating CF with ActiveMQ? How was the experience? Worth spending time to build a new solution on it? I would like to learn more on how to use it, any resource you can point me to?
update: Can ActiveMQ run under JRun together with ColdFusion? We’re using the Standard Edition.
Thanks
Yes we have used ActiveMQ, in fact we have a project going on at the moment to consume data via a ColdFusion event gateway using ActiveMQ.
Note: we are running on ColdFusion 9.0.1 and we are only consuming messages.
First place to start looking is in your own ColdFusion installation which comes with an ActiveMQ example! Look in
{cf_root}\gateway\docs.So to get setup you need to:
Add the ActiveMQ jar (
activemq-all-5.5.0.jar) file (available here) to the CF{cf_root}/libdirectoryMove the
examples.jarfile in{cf_root}\gateway\libto{cf_root}/libCheck out the
{cf_install}/gateway/docs/ActiveMQ_DeveloperGuide.pdfwhich will tell you how to create a configuration file. It should look something like thisheartbeat.cfgexample:Next, set up the event gateway:
c:\foo\MyCFC.cfc(this is the CFC that will handle data incoming)c:\foo\heartbeat.cfgYour CFC should look like so:
Start your event gateway, and lo and behold you should get messages coming in, or some sort of error.
Hope that helps!