要从队列中读取消息(在本例中最终涉及到从文件系统中读取数据,因为我们使用文件系统的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.
读取操作从队列获取消息,但是不从队列中删除消息。
The read operation gets the message from the queue without deleting the message from the queue.
每个参与通信的进程都可以在队列中添加消息和从队列读取消息。
Each communicating process may add messages to the queue and read messages from the queue. The message queue comes with the following properties.
应用推荐