CF& ActiveMQ 集成?
有人尝试过将 CF 与 ActiveMQ 集成吗?体验如何?值得花时间在其上构建新的解决方案吗?我想了解更多有关如何使用它的信息,您可以向我指出任何资源吗?
更新: ActiveMQ 可以在 JRun 下与 ColdFusion 一起运行吗?我们使用的是标准版。
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,我们已经使用了 ActiveMQ,事实上,我们目前正在进行一个项目,使用 ActiveMQ 通过 ColdFusion 事件网关使用数据。
注意:我们在 ColdFusion 9.0.1 上运行,并且我们只使用消息。
首先要开始查找的是您自己的 ColdFusion 安装,其中附带了一个 ActiveMQ 示例!查看
{cf_root}\gateway\docs
。因此,要进行设置,您需要:
添加 ActiveMQ jar (
activemq-all-5.5.0.jar
) 文件(可用 此处) 到 CF{cf_root}/lib
目录将
examples.jar
文件移至{cf_root}\gateway\lib
到{cf_root}/lib
查看
{cf_install}/gateway/docs/ActiveMQ_DeveloperGuide.pdf
,它将告诉你如何创建配置文件。它应该类似于heartbeat.cfg
示例:接下来,设置事件网关:
c:\ foo\MyCFC.cfc
(这是将处理数据传入的 CFC)c:\foo\heartbeat.cfg
您的 CFC 应如下所示:
开始您的活动网关,你瞧,你应该收到消息进来,或者某种错误。
希望有帮助!
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}/lib
directoryMove the
examples.jar
file in{cf_root}\gateway\lib
to{cf_root}/lib
Check out the
{cf_install}/gateway/docs/ActiveMQ_DeveloperGuide.pdf
which will tell you how to create a configuration file. It should look something like thisheartbeat.cfg
example:Next, set up the event gateway:
c:\foo\MyCFC.cfc
(this is the CFC that will handle data incoming)c:\foo\heartbeat.cfg
Your 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!