释义 |
MDBEconomist¹⁵⁷⁰³ 基本例句 n.内存数据线¹⁰⁰ In other words, the bus takes control of the message before it is delivered to the consumer, namely the MDB, providing a level of control that is not available in a traditional JMS scenario. 换句话说,总线在将消息传递到消费者之前就对它进行了控制,也就是 MDB,提供了在传统的 JMS场景中无法获得的控制级别。 ibm The application server then locates the deployed resource adapters that support that interface, and you select the one against which you wish to deploy the MDB. 然后应用服务器找到支持这个接口的已经部署的资源适配器,选择一个想在上面部署 MDB的适配器。 ibm The container knows that it has already performed some of the required operations on this endpoint proxy and will skip those when the actual MDB method is invoked. 容器知道自己已经执行了一些在这个端点代理上要求的操作,所以会在调用实际的 MDB方法时跳过这些方法。 ibm The message is now available to be delivered to a message consumer, such as a service provider or an MDB. 现在,消息允许被传递给一个消息消费者,例如一个服务提供者或是一个 MDB。 ibm The MDB that's part of the export binding implementation receives messages from a topic destination and translates them into the required form for the component it's wired to. 作为导出绑定实现的一部分的 MDB接收来自主题目的地的消息,并将消息转换为所连接到的组件所需要的形式。 ibm The MDB responsible for consuming the messages sent by the export plug-in uses an activation specification a set of connectivity parameters to connect to a JMS queue. MDB负责使用由导出插件发送的消息,它使用激活规范一组连接参数连接到一个 JMS队列。 ibm Additionally, application servers can maintain multiple instances of an MDB to handle concurrent service requests. 此外,应用服务器可以维护一个 MDB的多个实例,来处理并发的服务请求。 ibm Besides steps1-7, the script also includes commands to install and start the MDB application. 除了步骤1-7外,脚本还包含用于安装和启动 MDB应用程序的命令。 ibm If a MDB has been configured to use the listener port, it will start processing any messages on the queue immediately. 如果 MDB配置为使用该侦听器端口,则它将立即开始处理队列中的任何消息。 ibm In addition, a task agent can be used to filter messages sent to the MDB by specifying a message selector. 此外,任务代理还可以用于通过指定消息选择器对发送到 MDB的消息进行筛选。 ibm In the activation spec itself, you identify the queue that the MDB should listen to. 对于激活规范本身,您确定 MDB应该监听的队列。 ibm In the code show in Listing6, the default value is derived from an EJB environment variable set in the deployment descriptor of the EJB module containing the MDB. 在清单6所示的代码中,缺省值派生自一个 EJB环境变量,该变量是在包含 MDB的 EJB模块的部署描述符中设置的。 ibm Similarly, for the proxy you can only invoke methods on the interface declared in the MDB's deployment descriptor. 类似地,对于代理,也只能调用在 MDB的部署描述符中声明的接口上的方法。 ibm The existing MDB application is not affected by this change either. 现有的 MDB应用程序也不受此更改影响。 ibm The corresponding MDB instance running in that servant region processes the message based on goals set for that class of message. 运行在该服务区域中的对应 MDB实例基于为该消息分类设定的目标处理消息。 ibm The messages on this bus are the events that are picked up by a special MDB to be transferred for further processing to the so called Event Server application. 此总线上的消息是由一个特殊 MDB选取的事件,这些事件将传输到所谓的“事件服务器”应用程序以作进一步的处理。 ibm The object returned also implements the interface that the MDB declared in its deployment descriptor. 返回的对象还实现了 MDB在它的部署描述符中声明的接口。 ibm The work that the MDB method does would then be part of that transaction, including calls to other EJBs. 这样, MDB方法执行的工作,包括对其它 EJB的调用,就会成为事务的一部分。 ibm This could change in a later version, but currently you must define an MDB for each destination that you want to listen on. 这一限制在以后的版本中可以改变,但目前您只能为每个您想侦听的目的地定义一个 MDB。 ibm We will also look at some limitations and possible problems you may encounter, how to detect them and how they might be overcome, and also discuss some best practices for MDB load injectors. 我们还将介绍您可能遇到的一些限制和问题,以及如何检测和处理它们,同时讨论有关 MDB负载注入器的一些最佳实践。 ibm When the Event Service is configured, the Event Service MDB for the default messaging provider is installed along with all resources to receive Events asynchronously. 当配置事件服务时,缺省消息传递提供者的事件服务 MDB与所有资源一起安装,并以异步方式接收事件。 ibm Before we can run the client, we have to install and deploy the MDB into the application server, which we will do next. 在我们运行客户端之前,必须将 MDB安装并部署到应用程序服务器中。我们接下来就进行操作。 ibm If the number of deliveries is exceeded and the activation specification is appropriately configured, the failing MDB is paused, providing an opportunity for the failure to be investigated. 如果超过提交次数,并且正确地配置了激活规范,则失败的 MDB会暂停,从而提供调查故障的机会。 ibm If the MDB is deployed on a different server, the client application does not need to change. 如果将 MDB部署在不同的服务器上,则不需要更改客户机应用程序。 ibm If we were to specify it, then your MDB could not be configured to work with either programming model at configuration time. 如果我们要指定它,那么就不能在配置时配置 MDB来使用任一编程模型。 ibm If you wish, you can use this feature to test our sample MDB as well. 如果愿意,您也可以使用该特性来测试样例 MDB。 ibm In our scenario, however, we are not using this, since the MDB only supports one operation anyway. 不过在本文的示例中,我们不使用此应用程序,因为 MDB仅支持一种操作。 ibm The last thing we need is the activation specification, which is new for J2EE1.4 and binds the MDB to the queue. 我们需做的最后一件事情是激活规范,它对于 J2EE1.4是新的,并且将 MDB捆绑到队列中。 ibm Therefore, you do not need to add references for that MDB. 因此,您不需要为那个 MDB增加引用。 ibm With this approach, multiple MDB classes can bind to a single activation specification. 通过采用这个方式,可以将多个 MDB类绑定到单个激活规范。 ibm |