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 되고 유지
어떤 아이디어가 잘못 되었나요? 또는 내가 올바르게 구성하지 않은 것은 무엇입니까?
레이,
레이.
MDB에서 인스턴스 변수를 사용하면 어떻게됩니까? 2 개의 개별 스레드에서 호출되면 충돌이 발생할 수 있습니다. – AlexR
인스턴스 변수를 사용하지 않습니다. – Bozho
내 시스템에서 JMS Queue에서 병렬로 작업 할 MDB 인스턴스를 두 개 더 갖고 싶습니다. – rayman