2010-08-18 73 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

相關問題