7
我想將設置爲0
。這似乎是另一個問題(JMS queue with multiple consumers)的答案,並在第17.1.1章中的article中進行了描述。我使用JNDI檢索連接工廠。我hornetq-jms.xml
看起來是這樣的:JBoss HornetQ:爲消費緩慢的用戶設置消費者窗口大小
<configuration xmlns="urn:hornetq"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
<connection-factory name="ConnectionFactory">
<connectors>
<connector-ref connector-name="netty-connector"/>
</connectors>
<entries>
<entry name="ConnectionFactory"/>
</entries>
<consumer-window-size>0</consumer-window-size>
</connection-factory>
<queue name="my.qeue">
<entry name="/queue/test"/>
</queue>
</configuration>
的部分<connection-factory/>
是從上面的鏈接複製&粘貼,但我得到了錯誤:
DEPLOYMENTS IN ERROR:
Deployment "org.hornetq:module=JMS,name="ConnectionFactory",
type=ConnectionFactory" is in error due to the following reason(s):
HornetQException[errorCode=104 message=There is no connector with
name 'netty-connector' deployed.]
這可能是JBoss的6相關,因爲在其他環境這似乎工作:force order of messages with HornetQ
感謝您指出這一點! – Thor