The example begins by connecting to the queue manager and opening a queue handle for output.
该示例首先连接到队列管理器,并打开用于进行输出的队列句柄。
Keep connections and queues open if you are going to reuse them instead of repeatedly opening and closing, connecting and disconnecting.
如果您将要重用连接和队列,则应将它们保持打开,而不是重复地打开和关闭、连接和断开连接。
Next, we can set up the client by opening and connecting a AsynchronousSocketChannel to the server.
接下来,要通过打开并连接与服务器之间的AsynchronousSocketChannel,来设置客户端。
应用推荐