-
1. MDB does not process all messages when overloading the queue
wdfink May 13, 2011 2:57 AM (in response to trouta)Hi Tim,
could you provide a bit more informations ...
what JBoss version do you use?
How it is configured?
-
2. MDB does not process all messages when overloading the queue
trouta May 13, 2011 11:11 AM (in response to wdfink)I am using JBoss 3.2.7
<ejb-jar>
<ejb-name>AutoMoveToPM_MDB</ejb-name><ejb-class>xaware.mdb.mcao.AutoMoveToPM_MDB</ejb-class><transaction-type>Container</transaction-type><acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode><destination-type>javax.jms.Queue</destination-type></message-driven-destination>
</message-driven>
</enterprise-beans>
</ejb-jar>
<ejb-name>AutoMoveToPM_MDB</ejb-name><destination-jndi-name>queue/autoMoveToPM</destination-jndi-name><configuration-name>Singleton Message Driven Bean</configuration-name><invoker-proxy-binding-name>singleton-message-driven-bean</invoker-proxy-binding-name></invoker>
</invoker-bindings>
</message-driven>
</enterprise-beans>
</jboss>
From the standjboss.xml
<invoker-proxy-binding>
<name>singleton-message-driven-bean</name>
<invoker-mbean>default</invoker-mbean>
<proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
<proxy-factory-config>
<JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI>
<ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
<!-- WARN: Don't set this to zero until a bug in the pooled executor is fixed -->
<MinimumSize>1</MinimumSize>
<MaximumSize>1</MaximumSize>
<KeepAliveMillis>30000</KeepAliveMillis>
<MaxMessages>1</MaxMessages>
<MDBConfig>
<ReconnectIntervalSec>10</ReconnectIntervalSec>
<DLQConfig>
<DestinationQueue>queue/DLQ</DestinationQueue>
<MaxTimesRedelivered>10</MaxTimesRedelivered>
<TimeToLive>0</TimeToLive>
</DLQConfig>
</MDBConfig>
</proxy-factory-config>
</invoker-proxy-binding>
-
3. MDB does not process all messages when overloading the queue
trouta May 17, 2011 2:44 PM (in response to trouta)The problem was that the messages were expiring. Ask the sender to increase the time to live value.