有没有办法在 Nifi 的 PublishJMS 处理器中更改交付模式?
我正在使用 Nifi PublishJMS 处理器向 IBM MQ 发送消息.消息在 MQ 中具有持久性 = 持久性.我想将其更改为非持久性.Nifi PublishJms 处理器中是否有一个属性可以纠正这个问题?或者是从MQ端完成的.我无权访问 MQ 服务器,我只能检查正在传递到队列的消息.
I am sending messages to IBM MQ using Nifi PublishJMS processor. The Messages have Persistence = Persistent in MQ. I want to change it to Non-Persistent. Is there a property in Nifi PublishJms processor to correct this? Or is it done from the MQ side. I don't have access to MQ servers, I can only check the messages being delivered to the queue.
在低级别,MQ 客户端应用程序可以指定以下持久性值:
At a low level a MQ client applications can specify the following persistence values:
-
MQPER_PERSISTENCE_AS_PARENT
(使用本主题上方的下一个主题的值) -
MQPER_NOT_PERSISTENT
(不言自明) -
MQPER_PERSISTENT
(不言自明) -
MQPER_PERSISTENCE_AS_TOPIC_DEF
(使用此主题的值,主题上的默认值是 ASPARENT,因此其工作方式类似于MQPER_PERSISTENCE_AS_PARENT
,其中使用默认值)
-
MQPER_PERSISTENCE_AS_PARENT
(Use the value of the next topic above this one) -
MQPER_NOT_PERSISTENT
(self-explanatory) -
MQPER_PERSISTENT
(self-explanatory) -
MQPER_PERSISTENCE_AS_TOPIC_DEF
(Use the value of this topic, the default on a topic is ASPARENT so this works likeMQPER_PERSISTENCE_AS_PARENT
where defaults are in use)
如果未指定任何内容,则 MQPER_PERSISTENCE_AS_TOPIC_DEF
是默认值.
If nothing is specified then MQPER_PERSISTENCE_AS_TOPIC_DEF
is the default.
在 JMS API 中,您可以使用 URI 属性覆盖它,如下所示:
Within the JMS API you can override this using a URI property as follows:
queue:///theQueueName?persistence=1
属性 persistence
和所有 URI 属性都记录在 IBM MQ v8 知识中心页面在 JMS 应用程序中创建目标".
Property persistence
and all URI properties are documented in the IBM MQ v8 Knowledge center page "Creating destinations in a JMS application".
属性名称:持久性
-
-2
- 在 send() 调用中指定,或者如果在 send() 调用中未指定,则为消息生产者的默认持久性. -
-1
- 由 IBM MQ 队列或主题的 DefPersistence 属性指定. -
1
- 非持久性. -
2
- 持久. -
3
- 相当于 IBM MQ JMS 管理工具中使用的 PERSISTENCE 属性的值 HIGH.对此的解释值,请参阅 JMS 持久化消息.
-2
- As specified on the send() call or, if not specified on the send() call, the default persistence of the message producer.-1
- As specified by the DefPersistence attribute of the IBM MQ queue or topic.1
- Nonpersistent.2
- Persistent.3
- Equivalent to the value HIGH for the PERSISTENCE property as used in the IBM MQ JMS administration tool. For an explanation of this value, see JMS persistent messages.