-
1. Re: Max Redelivery Count
stephanenicoll Sep 19, 2003 6:03 AM (in response to swapna)That's not normal. Default retries is set to 10. Are you sure you have an infinite retry?
(To my opinion, this problem is code related)
Infinite retries is not supported (we had a thread on this issue last week)
Regards,
Stephane -
2. Re: Max Redelivery Count
adrian.brock Sep 19, 2003 7:41 AM (in response to swapna)Yes we did and a false bug report.
You should not throw EJBException from onMessage.
I wish I could delete examples on the web that do this.
Regards,
Adrian -
3. Re: Max Redelivery Count
swapna Sep 22, 2003 6:47 AM (in response to swapna)Ok Where will I find this default value of 10. I mean in which xml or properties file.
-
4. Re: Max Redelivery Count
stephanenicoll Sep 22, 2003 6:48 AM (in response to swapna)use search. Adrian already replied to this.
Regards,
Stephane -
5. Re: Max Redelivery Count
swapna Sep 22, 2003 6:49 AM (in response to swapna)I am using container managed transactions and for specific conditions to rollback so I need to throw EJBException.
-
6. Re: Max Redelivery Count
swapna Sep 22, 2003 6:53 AM (in response to swapna)there is no attribute as redelivery count. Is the name something else?
-
7. Re: Max Redelivery Count
stephanenicoll Sep 22, 2003 8:11 AM (in response to swapna)Check standardjboss.xml
invoker-proxy-binding>
message-driven-bean
<invoker-mbean>default</invoker-mbean>
<proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
<proxy-factory-config>
DefaultJMSProvider
StdJMSPool
15
1
10
queue/DLQ
10
0
</proxy-factory-config>
</invoker-proxy-binding>
and the 'MaxTimesRedelivered' property
Regards,
Stephane -
8. Re: Max Redelivery Count
adrian.brock Sep 22, 2003 8:17 AM (in response to swapna)You should use
messageDrivenContext.setRollbackOnly()
in a transaction.
All these has been explained many times before and is
stated in the spec.
Regards,
Adrian -
9. Re: Max Redelivery Count
swapna Sep 22, 2003 10:49 PM (in response to swapna)Thanx Stephane........... it worked.
-
10. Re: Max Redelivery Count
stephanenicoll Sep 23, 2003 4:57 AM (in response to swapna)Great. Pay attention to Adrian's remark however.
Regards,
Stephane