我正在使用jboss 5.1.x 我想增加我的mdb實例。 但沒有成功。增加MDB的實例
一些代碼:
@MessageDriven(activationConfig =
{ @ActivationConfigProperty(propertyName = "destinationType", propertyValue =
"javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue =
Constants.QUEUE_LOOKUP),
@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "50")
}
)
public class ECMSDispatcherMdb implements MessageListener
{
...
}
現在,當我看控制檯管理員,隊列\ myQueue中樹下:
Consumer Count 1 The number of consumers on the queue
Message Count 0 The number of messages in the queue
- 消費者計數,保持暫時只有1
任何想法是什麼錯?或者我沒有配置的權利?
謝謝,
ray。
如果MDB使用實例變量會怎麼樣?從2個獨立的線程調用它可能會導致衝突。 – AlexR
不使用實例變量:) – Bozho
我想在我的系統中有多於一個的MDB實例在我的JMS Que上並行工作 – rayman