创建一个JMS队列连接工厂。
单击如图2所示的队列连接工厂。
图30显示了所创建的队列连接工厂。
创建J MS队列连接工厂。
WAS 队列连接工厂设置
创建一个队列连接工厂。
每个队列连接都有一个与之相关联的会话池。
Every queue connection has a session pool associated with it.
您现在应该有三个队列连接工厂(图45)。
You should now have three queue connection factories (Figure 45).
我们首先配置请求和响应队列的队列连接工厂。
We first configure the queue Connection Factories for both the request and response queues.
为入站队列创建一个队列连接工厂(QCF)。
Create a Queue Connection Factory (QCF) for the Inbound Queue.
指定消息队列连接连接器参数
要定义JMS队列连接工厂对象,请执行以下步骤。
因此,您需要手动创建队列连接工厂,以便进行访问。
Therefore, you need to manually create a Queue Connection Factory for access.
现在创建JMS队列连接工厂和 JMS 队列资源
Now create the JMS queue connection factory and JMS queue resources
现在可以创建JMS队列连接工厂和JMS队列资源了。
Now you can create the JMS queue connection factory and JMS queue resources.
在创建队列前,需要创建队列连接工厂,请按照以下步骤进行操作。
Before you can create a queue, you need to create a queue connection factory, following these steps.
JMS应用程序通过队列连接工厂创建队列连接来与JMS提供程序通信。
A JMS application creates queue connections from queue connection factories to communicate with JMS providers.
业务流程容器和人工任务容器需要一组队列连接工厂、队列和激活规范才能工作。
The business process container and the human task container require a set of queue connection factories, queues, and activation specifications to work.
如果需要异步传输,当然应用服务器必须配置适当的jms队列和队列连接工厂。
If asynchronous transmission is required, the application server must, of course, be configured with the appropriate JMS Queue and Queue Connection Factory.
首先,这个程序通过查找上下文对象获得一个指定名称的队列连接工厂。
First, the program retrieves a queue connection factory by looking up the context object with a queue connection factory name.
我们定义了两个队列连接工厂 (QCF):jms/QCF1和 jms/QCF2。
We have two queue connection factories (QCFs) defined: jms/QCF1 and jms/QCF2.
就性能而言,这不是最佳的解决方案,因为中间的消息队列连接连接器引入了额外的消息开销。
In terms of performance, this is not the best solution because the message queue connection connector in the middle incurs extra messaging costs.
如果您熟悉如何创建这些资源—目标、jms队列和队列连接工厂—那么您可以继续下一小节。
If you are familiar with creating these resources - destinations, JMS queues, and queue connection factories - you may proceed to the next section. Otherwise, follow these steps.
可以使用与服务请求的队列目的地相同的队列连接工厂 (jms/MyQueueQCF)。
You can use the same queue connection factory that is used for queue destination for service requests (jms/MyQueueQCF).
下述步骤介绍了如何创建一个总线、一个队列连接工厂、实际队列以及队列的激活规范。
The steps below describe how to create a bus, then a queue connection factory, the actual queue as well as activation specification of the queue.
JMS请求队列连接工厂:由侦听器端口用于连接到承载请求mq队列的mq队列管理器。
JMS request queue Connection Factory: Used by the listener port to connect to the MQ queue manager that hosts the request MQ queue.
JMS应答队列连接工厂:由Web服务用于连接到承载应答mq队列的mq队列管理器。
JMS reply queue Connection Factory: Used by the Web service to connect to the MQ queue manager that hosts the reply MQ queue.
在接下来的几个步骤中,我们将为请求队列设置队列连接工厂,然后创建应答队列连接工厂。
In the next few steps, we will set up the queue connection factories for the request queue and then create the reply queue connection factory.
其次,它在队列连接中创建一个队列会话,并通过查找上下文对象获得一个指定名称的队列。
From the queue connection factory, a queue connection is created. Next, a queue session is created from a queue connection and a queue is retrieved by looking up the context object with a queue name.
队列连接是通过initMessagingFacility()方法获得的,需执行以下步骤
The connection to the queue is obtained in the method initMessagingFacility(), according to the following sequence of steps
应用推荐