[英]Failure retry in EJB 3
We have recently migrated our EJB 2 application to EJB 3.In EJB2 if some failures in onMessage container will be able to do retry the message on configured number of times however in EJB3 there is no such option.Could someone help on this. 我们最近将EJB 2应用程序迁移到了EJB 3.在EJB2中,如果onMessage容器中的某些故障将能够按配置的次数重试该消息,但是在EJB3中则没有这样的选择,有人可以提供帮助。
Can we explicitly sleep the thread and do explicitly retry in onMessage? 我们可以显式地休眠线程并在onMessage中显式重试吗?
Thanks in advance . 提前致谢 。
@TransactionManagement(value= TransactionManagementType.CONTAINER)
that is container managed transaction then on exception, message will be retired 10 time before the message is send to the DLQ. @TransactionManagement(value= TransactionManagementType.CONTAINER)
,它是容器管理的事务,那么在异常情况下,消息将在消息发送到DLQ之前10倍退出。 MaximumRedeliveries
Resource Adapter properties MaximumRedeliveries
资源适配器属性
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.