按消息或相关性标识符从队列中检索消息将降低应用程序的性能。
Retrieving messages from a queue by message or correlation identifiers will reduce application performance.
要从队列中读取消息(在本例中最终涉及到从文件系统中读取数据,因为我们使用文件系统的JNDI标识符),使用清单11中的代码。
To read the message from the queue (which in this case ultimately involves reading from the file system since we use the JNDI identifier for the file system), use the code in Listing 11.
将要发送到response队列的消息必须具有相同的消息标识符。
The message you will send to the RESPONSE queue must have the same message identifier.
在PROVIDER队列上的消息包含一个消息标识符,生成的消息流使用它将请求和响应关联起来。
The message on the PROVIDER queue contains a message identifier, which is used by the generated message flows to correlate the requests and responses.
正如上面提到的,put消息选项MQPMO_LOGICAL_ORDER仅是一个队列管理器指令,用于自动分配消息组标识符和序列号。
As mentioned above, the put message option MQPMO_LOGICAL_ORDER was simply an instruction to the queue manager to automatically allocate message group identifiers and sequence Numbers.
查看匹配给定相关标识符的消息,并且一直等到队列中出现具有指定相关标识符的消息或超时过期时。
Peeks the message that matches the given correlation identifier and waits until either a message with the specified correlation identifier is available in the queue, or the time-out expires.
使用此方法读取带有已知标识符的消息并将其从队列中移除。
Use this method to read a message with a known identifier and remove it from the queue.
从非事务性队列中接收与给定的相关标识符匹配的消息,并且一直等到队列中出现具有指定相关标识符的消息或者超时过期。
Receives the message that matches the given correlation identifier and waits until either a message with the specified correlation identifier is available in the queue, or the time-out expires.
接收与给定的相关标识符匹配的消息,并且一直等到队列中出现具有指定相关标识符的消息或超时过期。
Receives the message that matches the given correlation identifier and immediately raises an exception if no message with the specified correlation identifier currently exists in the queue.
接收与给定的相关标识符匹配的消息,并且一直等到队列中出现具有指定相关标识符的消息或超时过期。
Receives the message that matches the given correlation identifier and immediately raises an exception if no message with the specified correlation identifier currently exists in the queue.
应用推荐