简体   繁体   English

MDB允许重新传送消息

[英]MDB allow message redelivery

we have an application using MDBs on JBoss 7.2.1. 我们在JBoss 7.2.1上有一个使用MDB的应用程序。 The MDBs can occasionally throw a NullPointerException and I would like that the broker attempts to redeliver the message once more after some seconds. MDB有时可能会抛出NullPointerException,我希望代理在几秒钟后尝试再次重新传递消息。 This does not seem to happen automatically. 这似乎不会自动发生。 Is there any setting in the server that allows the message to be redelivered by the MDB automatically ? 服务器中是否有任何设置允许MDB自动重新发送邮件? (The MDB is deployed using the default settings) Thanks (使用默认设置部署MDB)

Bu default JBoss AS 7 (EAP 6 also) will redelivery the message based on the redelivery-delay timeout for the number of attempts specified by max-delivery-attempts . 默认的JBoss AS 7(也为EAP 6)将根据redelivery-delay超时来重新发送消息,以达到max-delivery-attempts指定的尝试次数 The NPE is derived from RuntimeException so the message redelivery will take place. NPE是从RuntimeException派生的,因此将重新传递消息。 Check out how the exception is handler. 查看异常是如何处理的。 If it's thrown by the server, you should be able to see the JMS Broker to re-attempt delivery 如果它被服务器抛出,您应该能够看到JMS Broker重新尝试传递
See more details on this tutorial . 请参阅本教程的更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM