图30显示了所创建的队列连接工厂。
创建J MS队列连接工厂。
我们首先配置请求和响应队列的队列连接工厂。
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队列连接工厂和 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.
现在,将生成绑定来将此导入和前面创建的WebSphereMQ队列连接起来。
Now you will generate the bindings that connect this import with the WebSphere MQ queue created earlier.
我们定义了两个队列连接工厂 (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
您应该将队列连接工厂的连接池大小和激活规范的maxConcurrency参数提高到适当的值。
You should increase the size of the connection pool of the queue connection factories and the maxConcurrency parameter for the activation specification to appropriate values.
在定义的范围中使用下面的jms队列、队列连接工厂JNDI名称及发射器工厂概要来配置JMS传输概要。
A JMS transmission profile is configured with the following JMS queue and queue connection factory JNDI name as well as an emitter factory profile at the scope defined.
图1显示了使用消息队列连接器建立的从BusinessEvents到Monitor的连接。
Figure 1 illustrates the connection from Business Events to Monitor using the message queue connector.
不幸的是,ESB应用程序安装期间生成的连接工厂不是BusinessEvents所需的队列连接工厂。
Unfortunately the connection factory generated during the installation of the ESB application is not a queue connection factory as required by Business Events.
通过输入以下内容,使用您创建的队列连接工厂定义文件运行WebSphereMQjmsadmin命令。
Run the WebSphere MQ jmsadmin command with the queue connection factory definition file you created by entering.
我们还将演示如何配置消息队列连接器来接受这些消息,以及如何在预期jms队列上放置测试CBE消息,以测试配置。
We'll also demonstrate how to configure the message queue connector to accept these messages, and how to place a test CBE message onto the expected JMS queue to test the configuration.
由于绑定模式不适合在此情况下使用,因此需要确保WebSphereMQ队列连接工厂配置为使用客户机模式进行通信。
Since the binding mode is not applicable in this situation, you need to ensure the WebSphere MQ queue connection factories are reconfigured to use the client mode for communication.
应用推荐