简体   繁体   English

邮件不会自动移至死信通道(DLC)-Broker-WSO2 EI

[英]Messages are not automatically moved to dead letter channel (DLC) - broker - wso2 ei

Im using WSO2 EI 6.1.1 with Message Broker, and trying to create message queue with message store and message process with an endpoint. 我将WSO2 EI 6.1.1与Message Broker一起使用,并尝试创建带有消息存储的消息队列以及带有端点的消息处理。

When I shutdown my endpoint, the message processor is deactivated and the messages stay in the queue and they are not moved to DLC. 当我关闭端点时,消息处理器将被停用,消息将保留在队列中,并且不会移至DLC。

What should I do to make it work ? 我应该怎么做才能使其正常工作?

Thanks, 谢谢,

Faris Shomou 法里斯·舒莫(Faris Shomou)

This is the expected behavior with message processor / message store : 这是消息处理器/消息存储库的预期行为:

  • A scheduled message processor will try to send the message until the delivery is successfull (and offers you a way to implement guaranteed delivery pattern) 计划的消息处理器将尝试发送消息,直到传递成功为止(并为您提供一种实现有保证的传递模式的方法)
  • A sampling message processor will send the message in a non reliable way (it can be lost) 采样消息处理器将以不可靠的方式发送消息(消息可能会丢失)

If you want to manage a JMS transaction and have the message to go in DLQ, use a jms inbound endpoint or jms proxy and set required parameters (transport.jms.SessionTransacted, transport.jms.SessionAcknowledgement : have a look to wso2 documentation https://docs.wso2.com/display/EI611/JMS+Transactions ) 如果要管理JMS事务并使消息进入DLQ,请使用jms入站端点或jms代理并设置所需的参数(transport.jms.SessionTransacted,transport.jms.SessionAcknowledgement:查看wso2文档https: //docs.wso2.com/display/EI611/JMS+Transactions

Message store / processor is used to implements Dead letter channel EIP : the jms store host the dead message and you don't want it to be moved elsewhere 消息存储/处理器用于实现死信通道EIP:JMS存储托管死信,您不希望将其移动到其他地方

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

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