mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-03-22 02:37:18 +08:00
fix 修复 书写错误
This commit is contained in:
@@ -28,8 +28,8 @@ public class TransactionRocketProducer {
|
||||
List<String> tags = Arrays.asList("TAG-1", "TAG-2", "TAG-3");
|
||||
for (int i = 0; i < 3; i++) {
|
||||
Message<String> message = MessageBuilder.withPayload("===>事务消息-" + i).build();
|
||||
//destination formats: `topicName:tags` message – message Message arg – ext arg
|
||||
TransactionSendResult res = rocketMQTemplate.sendMessageInTransaction("transaction_topic:" + tags.get(i), message, i + 1);
|
||||
// destination formats: `topicName:tags` message – message Message arg – ext arg
|
||||
TransactionSendResult res = rocketMQTemplate.sendMessageInTransaction("transaction-topic:" + tags.get(i), message, i + 1);
|
||||
if (res.getLocalTransactionState().equals(LocalTransactionState.COMMIT_MESSAGE) && res.getSendStatus().equals(SendStatus.SEND_OK)) {
|
||||
log.info("【生产者】事物消息发送成功;成功结果:{}", res);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user