2010-08-18 72 views
0

我正在使用ActiveMQ与跺脚和activemessaging。 我试图按照配置步骤 http://code.google.com/p/activemessaging/wiki/Configuration如何使用多个代理? (Stomp,ActiveMQ和activemessaging)

在我broker.yml,我有以下的配置

 
development: 
    adapter: stomp 
    login: "" 
    passcode: "" 
    host: localhost 
    port: 61613 
    reliable: true 
    reconnectDelay: 5 

foo: 
adapter: stomp 
login: "" 
passcode: "" 
host: xx.xx.xx.xx 
port: 61614 
reliable: true 
reconnectDelay: 5 

test: ..... 
production: ...... 

在我messaging.rb,我有...

ActiveMessaging::Gateway.define do |s| 
    s.queue :hi_world, '/queue/HiWorld', {}, 'foo' 
end 

但这似乎不起作用,消息未在HiWorld队列中排队。 任何帮助将不胜感激。

在此先感谢。

马特特

回答

1

我很想帮忙,但问题是格式不 - 我也说不清是什么broker.yml文件的样子。它看起来像foo:定义上的缩进级别是错误的;它需要处于环境层面(开发:),并且它看起来处于同一级别,所以不会被代理配置使用。

+0

这就像一个魅力!谢谢安德鲁! – msacro 2010-08-19 01:44:04

相关问题