Message resent too many times
chenna1978 Jan 27, 2005 3:00 PMHi,
I am using jboss-3.2.1 to deploying message driven bean.
It is working fine if my MDB don't throw any error.
I am getting the following error when an exception is throws in MDB.
14:25:17,171 WARN [DLQHandler] Message resent too many times; sending it to DLQ; message id=ID:6-11068538999531
I read jboss documentation and unable to figure out the problem. Jboss sending message 10 times if MDB throws an exception
and finally getting the above warning.
By default jboss sends message 10 times if MDB throws an exeption. I tried to control this but not working.
In standardjboss.xml file I used MaxTimesRedelivered = 1 (i.e I want to send message only once if there is any error in MDB).
I don't want to send message 10 times if there is any error in MDB.
Please can any one help me?
Here is my standardjboss.xml and jboss.xml files.
standardjboss.xml file
**************************
...........
...............
<container-configuration>
<container-name>Standard Message Driven Bean</container-name>
<call-logging>false</call-logging>
<invoker-proxy-bindings>
<invoker-proxy-binding>
message-driven-bean
<invoker-mbean>default</invoker-mbean>
<proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
<proxy-factory-config>
QueuehostJMSProvider
StdJMSPool
10
30000
50
1
10
queue/DLQ
1
0
</proxy-factory-config>
</invoker-proxy-binding>
</invoker-proxy-bindings>
<container-interceptors>
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor
org.jboss.ejb.plugins.LogInterceptor
org.jboss.ejb.plugins.RunAsSecurityInterceptor
<!-- CMT -->
org.jboss.ejb.plugins.TxInterceptorCMT
org.jboss.ejb.plugins.MetricsInterceptor
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
<!-- BMT -->
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT
org.jboss.ejb.plugins.MetricsInterceptor
org.jboss.resource.connectionmanager.CachedConnectionInterceptor
</container-interceptors>
<instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
<instance-cache></instance-cache>
<persistence-manager></persistence-manager>
<container-pool-conf>
100
</container-pool-conf>
</container-configuration>
</container-configurations>
jboss.xml
**************
...............
................
<message-driven>
<ejb-name>TestMDB</ejb-name>
<destination-jndi-name>queue/testQueue1</destination-jndi-name>
<invoker-bindings>
<invoker-proxy-binding-name>message-driven-bean</invoker-proxy-binding-name>
</invoker-bindings>
</message-driven>